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)
commit6b5733eb638b7068ab7cb34e663b55a1d1892d85
treeb5f070f96394192d25a3b323112128b6bd9d876c
parent4f793dc40bc605b97624fd36baf085b3c35e8bfd
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