sst-linux/include
Ming Lei f892a0cffc lib/sbitmap: define swap_lock as raw_spinlock_t
[ Upstream commit 65f666c6203600053478ce8e34a1db269a8701c9 ]

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 <yang.yang@vivo.com>
Fixes: 72d04bdcf3f7 ("sbitmap: fix io hung due to race on sbitmap_word::cleared")
Signed-off-by: Ming Lei <ming.lei@redhat.com>
Reviewed-by: Yang Yang <yang.yang@vivo.com>
Link: https://lore.kernel.org/r/20240919021709.511329-1-ming.lei@redhat.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-10-17 15:21:10 +02:00
..
acpi ACPI: CPPC: Fix MASK_VAL() usage 2024-10-17 15:20:39 +02:00
asm-generic
clocksource pwm: xilinx: Fix u32 overflow issue in 32-bit width PWM mode. 2024-09-08 07:53:09 +02:00
crypto
drm
dt-bindings
keys
kunit
kvm
linux lib/sbitmap: define swap_lock as raw_spinlock_t 2024-10-17 15:21:10 +02:00
math-emu
media
memory
misc
net Bluetooth: hci_core: Fix sending MGMT_EV_CONNECT_FAILED 2024-10-17 15:20:42 +02:00
pcmcia
ras
rdma
rv
scsi scsi: core: Fix the return value of scsi_logical_block_count() 2024-08-29 17:30:49 +02:00
soc net: mscc: ocelot: serialize access to the injection/extraction groups 2024-08-29 17:30:43 +02:00
sound
target
trace f2fs: reduce expensive checkpoint trigger frequency 2024-10-17 15:21:09 +02:00
uapi fuse: add feature flag for expire-only 2024-09-12 11:10:30 +02:00
ufs
vdso
video
xen