commit | da67631a33c342528245817cc61e36dd945665b0 | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <asml.silence@gmail.com> | Tue Jan 26 11:17:02 2021 +0000 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Sat Jan 30 13:55:18 2021 +0100 |
tree | 703a3d0b9364997d25a0558d3acfafc7c0d91c4b | |
parent | 18f31594ee52ed1f364e376767fb839935fd899c [diff] |
io_uring: add warn_once for io_uring_flush() [ Upstream commit 6b5733eb638b7068ab7cb34e663b55a1d1892d85] 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. Cc: stable@vger.kernel.org # 5.5+ Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>