summaryrefslogtreecommitdiffstats
path: root/lib/strncpy_from_user.c
diff options
context:
space:
mode:
authorTejun Heo <tj@kernel.org>2022-12-06 11:36:32 -1000
committerDavid S. Miller <davem@davemloft.net>2022-12-09 10:42:56 +0000
commite47877c7aa821c413b45e05f804819579bdfa1a3 (patch)
tree281f4a159cd9d5ddfa0c940636a72868e8c19cff /lib/strncpy_from_user.c
parentb602d00384bdfb8874cc4dcb298fc87cc369630b (diff)
downloadlinux-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