diff options
author | Tejun Heo <tj@kernel.org> | 2022-12-06 11:36:32 -1000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-12-09 10:42:56 +0000 |
commit | e47877c7aa821c413b45e05f804819579bdfa1a3 (patch) | |
tree | 281f4a159cd9d5ddfa0c940636a72868e8c19cff /lib/strncpy_from_user.c | |
parent | b602d00384bdfb8874cc4dcb298fc87cc369630b (diff) | |
download | linux-stable-e47877c7aa821c413b45e05f804819579bdfa1a3.tar.gz linux-stable-e47877c7aa821c413b45e05f804819579bdfa1a3.tar.bz2 linux-stable-e47877c7aa821c413b45e05f804819579bdfa1a3.zip |
rhashtable: Allow rhashtable to be used from irq-safe contexts
rhashtable currently only does bh-safe synchronization making it impossible
to use from irq-safe contexts. Switch it to use irq-safe synchronization to
remove the restriction.
v2: Update the lock functions to return the ulong flags value and unlock
functions to take the value directly instead of passing around the
pointer. Suggested by Linus.
Signed-off-by: Tejun Heo <tj@kernel.org>
Reviewed-by: David Vernet <dvernet@meta.com>
Acked-by: Josh Don <joshdon@google.com>
Acked-by: Hao Luo <haoluo@google.com>
Acked-by: Barret Rhoden <brho@google.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'lib/strncpy_from_user.c')
0 files changed, 0 insertions, 0 deletions