diff options
author | David S. Miller <davem@davemloft.net> | 2014-10-02 14:25:43 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-10-02 14:25:43 -0400 |
commit | 739e4a758e0e2930f4bcdddd244254bae8dd7499 (patch) | |
tree | 0179d038669ad55591ae05a90b210d7090edf56e /lib/rhashtable.c | |
parent | d068b02cfdfc27f5962ec82ec5568b706f599edc (diff) | |
parent | 50dddff3cb9af328dd42bafe3437c7f47e8b38a9 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Conflicts:
drivers/net/usb/r8152.c
net/netfilter/nfnetlink.c
Both r8152 and nfnetlink conflicts were simple overlapping changes.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/rhashtable.c')
-rw-r--r-- | lib/rhashtable.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/rhashtable.c b/lib/rhashtable.c index 25f14c586ad7..3943e14da628 100644 --- a/lib/rhashtable.c +++ b/lib/rhashtable.c | |||
@@ -592,13 +592,13 @@ EXPORT_SYMBOL_GPL(rhashtable_init); | |||
592 | * rhashtable_destroy - destroy hash table | 592 | * rhashtable_destroy - destroy hash table |
593 | * @ht: the hash table to destroy | 593 | * @ht: the hash table to destroy |
594 | * | 594 | * |
595 | * Frees the bucket array. | 595 | * Frees the bucket array. This function is not rcu safe, therefore the caller |
596 | * has to make sure that no resizing may happen by unpublishing the hashtable | ||
597 | * and waiting for the quiescent cycle before releasing the bucket array. | ||
596 | */ | 598 | */ |
597 | void rhashtable_destroy(const struct rhashtable *ht) | 599 | void rhashtable_destroy(const struct rhashtable *ht) |
598 | { | 600 | { |
599 | const struct bucket_table *tbl = rht_dereference(ht->tbl, ht); | 601 | bucket_table_free(ht->tbl); |
600 | |||
601 | bucket_table_free(tbl); | ||
602 | } | 602 | } |
603 | EXPORT_SYMBOL_GPL(rhashtable_destroy); | 603 | EXPORT_SYMBOL_GPL(rhashtable_destroy); |
604 | 604 | ||