commit | 0242f6426ea78fbe3933b44f8c55ae93ec37f6cc | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Tue Aug 31 13:53:00 2021 -0600 |
committer | Jens Axboe <axboe@kernel.dk> | Tue Aug 31 13:53:00 2021 -0600 |
tree | 80d4226ac1a2b1460900aea9d8e4e6d018410ad8 | |
parent | b8ce1b9d25ccf81e1bbabd45b963ed98b2222df8 [diff] |
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>