diff options
author | Jens Axboe <[email protected]> | 2020-01-09 07:52:28 -0700 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2020-01-20 17:04:06 -0700 |
commit | 10fef4bebf979bb705feed087611293d5864adfe (patch) | |
tree | ca1295794fd2ddf0d8be6fdd83d5950bbfcf6b3c /drivers/fpga/fpga-bridge.c | |
parent | 354420f705ccd0aa2d41249f3bb55b4afbed1873 (diff) |
io_uring: account fixed file references correctly in batch
We can't assume that the whole batch has fixed files in it. If it's a
mix, or none at all, then we can end up doing a ref put that either
messes up accounting, or causes an oops if we have no fixed files at
all.
Also ensure we free requests properly between inflight accounted and
normal requests.
Fixes: 82c721577011 ("io_uring: extend batch freeing to cover more cases")
Reported-by: Dmitrii Dolgov <[email protected]>
Reported-by: Pavel Begunkov <[email protected]>
Tested-by: Dmitrii Dolgov <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'drivers/fpga/fpga-bridge.c')
0 files changed, 0 insertions, 0 deletions