Skip to content

Commit cb29eee

Browse files
committed
Merge tag 'io_uring-5.16-2021-12-17' of git://git.kernel.dk/linux-block
Pull io_uring fix from Jens Axboe: "Just a single fix, fixing an issue with the worker creation change that was merged last week" * tag 'io_uring-5.16-2021-12-17' of git://git.kernel.dk/linux-block: io-wq: drop wqe lock before creating new worker
2 parents 43d1c6a + d800c65 commit cb29eee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

fs/io-wq.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,9 @@ static void io_wqe_dec_running(struct io_worker *worker)
395395
if (atomic_dec_and_test(&acct->nr_running) && io_acct_run_queue(acct)) {
396396
atomic_inc(&acct->nr_running);
397397
atomic_inc(&wqe->wq->worker_refs);
398+
raw_spin_unlock(&wqe->lock);
398399
io_queue_worker_create(worker, acct, create_worker_cb);
400+
raw_spin_lock(&wqe->lock);
399401
}
400402
}
401403

0 commit comments

Comments
 (0)