• Jens Axboe's avatar
    io-wq: fix queue stalling race · 0242f642
    Jens Axboe authored
    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>
    0242f642
io-wq.c 28.7 KB