Skip to content
Commit 0242f642 authored by Jens Axboe's avatar Jens Axboe
Browse files

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: default avatarJens Axboe <axboe@kernel.dk>
parent b8ce1b9d
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment