]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
Revert "driver: block: release the lo_work_lock before queue_work"
authorZhaoyang Huang <zhaoyang.huang@unisoc.com>
Tue, 18 Feb 2025 06:58:35 +0000 (14:58 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 18 Feb 2025 16:28:26 +0000 (09:28 -0700)
commit02b3c61aab443d8c1cc7d7eb0ae0a8d86b547224
tree9b31d6235447f89092bff8d1603659034e3f860f
parenta052bfa636bb763786b9dc13a301a59afb03787a
Revert "driver: block: release the lo_work_lock before queue_work"

This reverts commit ad934fc1784802fd1408224474b25ee5289fadfc.

loop_queue_work should be strictly serialized to loop_process_work since
the lo_worker could be freed without noticing new work has been queued
again.

Signed-off-by: Zhaoyang Huang <zhaoyang.huang@unisoc.com>
Link: https://lore.kernel.org/r/20250218065835.19503-1-zhaoyang.huang@unisoc.com
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/loop.c