author: Pavel Begunkov <asml.silence@gmail.com> 2021-03-06 11:02:18 +0000
committer: Jens Axboe <axboe@kernel.dk> 2021-03-07 14:12:43 -0700
commit: 678eeba481d8c161203382832a4379d507050aed
parent: 1b00764f09b6912d25e188d972a7764a457926ba
Commit Summary:
Diffstat:
1 file changed, 2 insertions, 0 deletions
diff --git a/fs/io-wq.c b/fs/io-wq.c
index 1bfdb86336e4..1ab9324e602f 100644
--- a/fs/io-wq.c
+++ b/fs/io-wq.c
@@ -774,6 +774,8 @@ static int io_wq_fork_manager(struct io_wq *wq)
if (wq->manager)
return 0;
+ WARN_ON_ONCE(test_bit(IO_WQ_BIT_EXIT, &wq->state));
+
init_completion(&wq->worker_done);
atomic_set(&wq->worker_refs, 1);
tsk = create_io_thread(io_wq_manager, wq, NUMA_NO_NODE);