io-wq: reorder cancellation pending -> running
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 15 Jun 2020 07:24:02 +0000 (10:24 +0300)
committerJens Axboe <axboe@kernel.dk>
Mon, 15 Jun 2020 14:51:33 +0000 (08:51 -0600)
commitf4c2665e33f48904f2766d644df33fb3fd54b5ec
tree7834e46a1346682d19424c2badfaca6e1b0075a8
parent59960b9deb5354e4cdb0b6ed3a3b653a2b4eb602
io-wq: reorder cancellation pending -> running

Go all over all pending lists and cancel works there, and only then
try to match running requests. No functional changes here, just a
preparation for bulk cancellation.

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