diff options
author | NeilBrown <neilb@suse.com> | 2018-04-24 08:29:13 +1000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-04-24 13:21:45 -0400 |
commit | 82266e98dd4d8e7d5b8e4a0fedeb91f2eb29d306 (patch) | |
tree | 105d814d3ace4531f5b4bd593bb5e0dc998ab901 /lib/rhashtable.c | |
parent | 0c6f69a5e3641bccfe21fd0eeafad45a8c6db987 (diff) | |
download | linux-82266e98dd4d8e7d5b8e4a0fedeb91f2eb29d306.tar.bz2 |
rhashtable: Revise incorrect comment on r{hl, hash}table_walk_enter()
Neither rhashtable_walk_enter() or rhltable_walk_enter() sleep, though
they do take a spinlock without irq protection.
So revise the comments to accurately state the contexts in which
these functions can be called.
Acked-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/rhashtable.c')
-rw-r--r-- | lib/rhashtable.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/rhashtable.c b/lib/rhashtable.c index 2b2b79974b61..6d490f51174e 100644 --- a/lib/rhashtable.c +++ b/lib/rhashtable.c @@ -668,8 +668,9 @@ EXPORT_SYMBOL_GPL(rhashtable_insert_slow); * For a completely stable walk you should construct your own data * structure outside the hash table. * - * This function may sleep so you must not call it from interrupt - * context or with spin locks held. + * This function may be called from any process context, including + * non-preemptable context, but cannot be called from softirq or + * hardirq context. * * You must call rhashtable_walk_exit after this function returns. */ |