]> 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)
commit8d0ad245e95cd2fc0f032b4a9db582b83019b30a
treeb5f070f96394192d25a3b323112128b6bd9d876c
parent4f7e365dc8cc7eca885cd7f53c05e51d5ce22432
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