commit | 7fbb1b541f4286cc337b9bca1e5bad0ce4ee978c | [log] [tgz] |
---|---|---|
author | Pavel Begunkov <asml.silence@gmail.com> | Thu Jul 16 23:28:05 2020 +0300 |
committer | Jens Axboe <axboe@kernel.dk> | Fri Jul 24 13:00:45 2020 -0600 |
tree | 15c4e1399e78d6b9cafd4ba8205cd2d9fe4f579a | |
parent | 8ff069bf2efd7b7aeb90b56ea8edc165c93d8940 [diff] |
io_uring: don't open-code recv kbuf managment Don't implement fast path of kbuf freeing and management inlined into io_recv{,msg}(), that's error prone and duplicates handling. Replace it with a helper io_put_recv_kbuf(), which mimics io_put_rw_kbuf() in the io_read/write(). This also keeps cflags calculation in one place, removing duplication between rw and recv/send. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>