io-wq: remove io_wq_flush and IO_WQ_WORK_INTERNAL
commit80ad894382bf1d73eb688c29714fa10c0afcf2e7
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 2 Mar 2020 20:46:10 +0000 (2 23:46 +0300)
committerJens Axboe <axboe@kernel.dk>
Mon, 2 Mar 2020 21:03:24 +0000 (2 14:03 -0700)
tree9526fe46a1ea291ee4e7cba8ffe8b50dc3b0eddc
parentfc04c39bae01a607454f7619665309870c60937a
io-wq: remove io_wq_flush and IO_WQ_WORK_INTERNAL

io_wq_flush() is buggy, during cancelation of a flush, the associated
work may be passed to the caller's (i.e. io_uring) @match callback. That
callback is expecting it to be embedded in struct io_kiocb. Cancelation
of internal work probably doesn't make a lot of sense to begin with.

As the flush helper is no longer used, just delete it and the associated
work flag.

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