commit | 0e1b6fe3d1e5f1b79c5bec37881c98febfba7718 | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <asml.silence@gmail.com> | Thu Jul 16 23:28:02 2020 +0300 |
committer | Jens Axboe <axboe@kernel.dk> | Fri Jul 24 13:00:45 2020 -0600 |
tree | 01e800fd7d001676ad5bdb44d23ce079afa26d30 | |
parent | 14c32eee9286621dd437b53460e44bd11e5bc08d [diff] |
io_uring: free selected-bufs if error'ed io_clean_op() may be skipped even if there is a selected io_buffer, that's because *select_buffer() funcions never set REQ_F_NEED_CLEANUP. Trigger io_clean_op() when REQ_F_BUFFER_SELECTED is set as well, and and clear the flag if was freed out of it. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>