mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-13 07:31:07 +00:00
io-wq: fix queue stalling race
We need to set the stalled bit early, before we drop the lock for adding us to the stall hash queue. If not, then we can race with new work being queued between adding us to the stall hash and io_worker_handle_work() marking us stalled. Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
parent
b8ce1b9d25
commit
0242f6426e
1 changed files with 7 additions and 8 deletions
15
fs/io-wq.c
15
fs/io-wq.c
Loading…
Add table
Add a link
Reference in a new issue