]> git.baikalelectronics.ru Git - kernel.git/commit
io-wq: remove io_wq_flush and IO_WQ_WORK_INTERNAL
authorPavel Begunkov <asml.silence@gmail.com>
Mon, 2 Mar 2020 20:46:10 +0000 (23:46 +0300)
committerJens Axboe <axboe@kernel.dk>
Mon, 2 Mar 2020 21:03:24 +0000 (14:03 -0700)
commitfb0655d4dd80633da9759ffe025d120500f0ad18
tree9526fe46a1ea291ee4e7cba8ffe8b50dc3b0eddc
parentbf20523fd704af65f6e38f64464069652d785ca2
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