commit | ae421d9350b51cba1daa28ee6eb14fbce7517eca | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <asml.silence@gmail.com> | Tue Aug 17 20:28:08 2021 +0100 |
committer | Jens Axboe <axboe@kernel.dk> | Mon Aug 23 13:10:43 2021 -0600 |
tree | e98150d11fba8c7176a7c50843a43d3971c22d62 | |
parent | 906c6caaf586180261ea581915e1cf8bc466bd69 [diff] |
io_uring: better encapsulate buffer select for rw Make io_put_rw_kbuf() to do the REQ_F_BUFFER_SELECTED check, so all the callers don't need to hand code it. The number of places where we call io_put_rw_kbuf() is growing, so saves some pain. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/3df3919e5e7efe03420c44ab4d9317a81a9cf398.1629228203.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>