]> git.baikalelectronics.ru Git - kernel.git/commit
io-wq: fix IO_WQ_WORK_NO_CANCEL cancellation
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 1 Mar 2020 16:18:19 +0000 (19:18 +0300)
committerJens Axboe <axboe@kernel.dk>
Mon, 2 Mar 2020 14:20:08 +0000 (07:20 -0700)
commit0453b4fac019ebe727841672b16c81c7020bf20d
tree172b9b53f27f097655777788901405cf134f6723
parentfa91a3b5a2e53a995f641241b83c1d4bd4799307
io-wq: fix IO_WQ_WORK_NO_CANCEL cancellation

To cancel a work, io-wq sets IO_WQ_WORK_CANCEL and executes the
callback. However, IO_WQ_WORK_NO_CANCEL works will just execute and may
return next work, which will be ignored and lost.

Cancel the whole link.

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