OSDN Git Service

io-wq: warn on creating manager while exiting
authorPavel Begunkov <asml.silence@gmail.com>
Sat, 6 Mar 2021 11:02:18 +0000 (11:02 +0000)
committerJens Axboe <axboe@kernel.dk>
Sun, 7 Mar 2021 21:12:43 +0000 (14:12 -0700)
commit678eeba481d8c161203382832a4379d507050aed
tree4edfcde6eb9417bc9d25b0ec93cd71cae79c83be
parent1b00764f09b6912d25e188d972a7764a457926ba
io-wq: warn on creating manager while exiting

Add a simple warning making sure that nobody tries to create a new
manager while we're under IO_WQ_BIT_EXIT. That can potentially happen
due to racy work submission after final put.

Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io-wq.c