Commit 11ba820
committed
io_uring: ensure workqueue offload grabs ring mutex for poll list
A previous commit moved the locking for the async sqthread, but didn't
take into account that the io-wq workers still need it. We can't use
req->in_async for this anymore as both the sqthread and io-wq workers
set it, gate the need for locking on io_wq_current_is_worker() instead.
Fixes: 8a4955f ("io_uring: sqthread should grab ctx->uring_lock for submissions")
Reported-by: Bijan Mottahedeh <bijan.mottahedeh@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 797f3f5 commit 11ba820
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3286 | 3286 | | |
3287 | 3287 | | |
3288 | 3288 | | |
| 3289 | + | |
| 3290 | + | |
3289 | 3291 | | |
3290 | 3292 | | |
3291 | 3293 | | |
| 3294 | + | |
| 3295 | + | |
| 3296 | + | |
| 3297 | + | |
3292 | 3298 | | |
| 3299 | + | |
| 3300 | + | |
| 3301 | + | |
3293 | 3302 | | |
3294 | 3303 | | |
3295 | 3304 | | |
| |||
0 commit comments