Commit 6b5733e
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>1 parent 4f793dc commit 6b5733e
1 file changed
Lines changed: 10 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9055 | 9055 | | |
9056 | 9056 | | |
9057 | 9057 | | |
9058 | | - | |
| 9058 | + | |
| 9059 | + | |
| 9060 | + | |
9059 | 9061 | | |
9060 | 9062 | | |
| 9063 | + | |
| 9064 | + | |
| 9065 | + | |
| 9066 | + | |
9061 | 9067 | | |
9062 | 9068 | | |
9063 | 9069 | | |
9064 | 9070 | | |
9065 | | - | |
9066 | | - | |
9067 | | - | |
| 9071 | + | |
| 9072 | + | |
9068 | 9073 | | |
| 9074 | + | |
9069 | 9075 | | |
9070 | 9076 | | |
9071 | 9077 | | |
| |||
0 commit comments