]> git.baikalelectronics.ru Git - kernel.git/commit
io_uring: add warn_once for io_uring_flush()
authorPavel Begunkov <asml.silence@gmail.com>
Fri, 8 Jan 2021 20:57:24 +0000 (20:57 +0000)
committerJens Axboe <axboe@kernel.dk>
Sat, 9 Jan 2021 16:21:43 +0000 (09:21 -0700)
commitddd94d17909da0d846401c9869d94aebd5812431
treeb5f070f96394192d25a3b323112128b6bd9d876c
parent75c035eb3aacd0927b2960a4eb4515b8710e8339
io_uring: add warn_once for io_uring_flush()

files_cancel() should cancel all relevant requests and drop file notes,
so we should never have file notes after that, including on-exit fput
and flush. Add a WARN_ONCE to be sure.

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