diff options
author | Alexander Aring <[email protected]> | 2024-04-17 15:13:22 -0400 |
---|---|---|
committer | David Teigland <[email protected]> | 2024-04-17 14:20:04 -0500 |
commit | 7b012732d005fba22912dda038dd253e3b9a1bfc (patch) | |
tree | 7093ab567d97a4f508c8f4f00b02d057cbe0677d /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 15fd7e55177a8d6243096bb6b9536cd15f56d547 (diff) |
dlm: fix sleep in atomic context
This patch changes the orphans mutex to a spinlock since commit
c288745f1d4a ("dlm: avoid blocking receive at the end of recovery") is
using a rwlock_t to lock the DLM message receive path and do_purge() can
be called while this lock is held that forbids to sleep.
We need to use spin_lock_bh() because also a user context that calls
dlm_user_purge() can call do_purge() and since commit 92d59adfaf71
("dlm: do message processing in softirq context") the DLM message
receive path is done under softirq context.
Fixes: c288745f1d4a ("dlm: avoid blocking receive at the end of recovery")
Reported-by: Dan Carpenter <[email protected]>
Closes: https://lore.kernel.org/gfs2/[email protected]/
Signed-off-by: Alexander Aring <[email protected]>
Signed-off-by: David Teigland <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions