On Thu, 19 Sep 2024 10:17:09 +0800, Ming Lei wrote: > 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. > > > [...] Applied, thanks! [1/1] lib/sbitmap: define swap_lock as raw_spinlock_t commit: 65f666c6203600053478ce8e34a1db269a8701c9 Best regards, -- Jens Axboe