commit | 9466f43741bc08edd7b1bee642dd6f5561091634 | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <asml.silence@gmail.com> | Sat Jan 25 22:34:01 2020 +0300 |
committer | Jens Axboe <axboe@kernel.dk> | Mon Jan 27 15:36:30 2020 -0700 |
tree | 514b35bd07f6e4dbaea3117cbdd859499594ec53 | |
parent | 8cdf2193a3335b4cfb6e023b41ac293d0843d287 [diff] |
io_uring: fix refcounting with batched allocations at OOM In case of out of memory the second argument of percpu_ref_put_many() in io_submit_sqes() may evaluate into "nr - (-EAGAIN)", that is clearly wrong. Fixes: 2b85edfc0c90 ("io_uring: batch getting pcpu references") Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>