diff options
| author | Ming Lei <[email protected]> | 2024-09-19 02:17:09 +0000 |
|---|---|---|
| committer | Jens Axboe <[email protected]> | 2024-09-20 06:20:06 +0000 |
| commit | 65f666c6203600053478ce8e34a1db269a8701c9 (patch) | |
| tree | 9be4a5edc10fbe06af0f9ea2b1c05abafec8a363 /lib/crypto/mpi/mpi-mul.c | |
| parent | block: Remove unused blk_limits_io_{min,opt} (diff) | |
| download | kernel-65f666c6203600053478ce8e34a1db269a8701c9.tar.gz kernel-65f666c6203600053478ce8e34a1db269a8701c9.zip | |
lib/sbitmap: define swap_lock as raw_spinlock_t
When called from sbitmap_queue_get(), sbitmap_deferred_clear() may be run
with preempt disabled. In RT kernel, spin_lock() can sleep, then warning
of "BUG: sleeping function called from invalid context" can be triggered.
Fix it by replacing it with raw_spin_lock.
Cc: Yang Yang <[email protected]>
Fixes: 72d04bdcf3f7 ("sbitmap: fix io hung due to race on sbitmap_word::cleared")
Signed-off-by: Ming Lei <[email protected]>
Reviewed-by: Yang Yang <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpi-mul.c')
0 files changed, 0 insertions, 0 deletions
