io-wq: close cancel gap for hashed linked work
authorPavel Begunkov <asml.silence@gmail.com>
Sun, 22 Mar 2020 16:14:26 +0000 (19:14 +0300)
committerJens Axboe <axboe@kernel.dk>
Sun, 22 Mar 2020 17:33:58 +0000 (11:33 -0600)
commitf2cf11492b8b30d89b2fbf525c9ea5e8c4ccc842
treecc06c48c1ef5efaacc512ea8465b63afa9858516
parent9f5834c868e901b00f1bfe4d0052b5906b4a2b7f
io-wq: close cancel gap for hashed linked work

After io_assign_current_work() of a linked work, it can be decided to
offloaded to another thread so doing io_wqe_enqueue(). However, until
next io_assign_current_work() it can be cancelled, that isn't handled.

Don't assign it, if it's not going to be executed.

Fixes: 60cf46ae6054 ("io-wq: hash dependent work")
Signed-off-by: Pavel Begunkov <asml.silence@gmail.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
fs/io-wq.c