io_uring: refactor sendmsg/recvmsg iov managing
Current iov handling with recvmsg/sendmsg may be confusing. First make a rule for msg->iov: either it points to an allocated iov that have to be kfree()'d later, or it's NULL and we use fast_iov. That's much better than current 3-state (also can point to fast_iov). And rename it into free_iov for uniformity with read/write. Also, instead of after struct io_async_msghdr copy fixing up of msg.msg_iter.iov has been happening in io_recvmsg()/io_sendmsg(). Move it into io_setup_async_msg(), that's the right place. Signed-off-by:Pavel Begunkov <asml.silence@gmail.com> [axboe: add comment on NULL check before kfree()] Signed-off-by:
Jens Axboe <axboe@kernel.dk>
Loading
-
mentioned in commit 53880f97
-
mentioned in commit 5635bf63
-
mentioned in commit 250e046d
-
mentioned in commit 8e03fef7
-
mentioned in commit d539bcf6
-
mentioned in commit fec5b923
-
mentioned in commit 47d63564
-
mentioned in commit e45d35f9
-
mentioned in commit fe386410
-
mentioned in commit 848284d4
-
mentioned in commit 827f8fcb
-
mentioned in commit 827f8fcb
-
mentioned in commit 4363ed07
-
mentioned in commit bd404b2d
-
mentioned in commit 3b01abd1
-
mentioned in commit cc8d776d
-
mentioned in commit 7aba3181
-
mentioned in commit 2ffd0df1
-
mentioned in commit fa93148d
-
mentioned in commit 66f441f6
-
mentioned in commit 042ec471
-
mentioned in commit 646034e6
-
mentioned in commit 3a886adb
-
mentioned in commit 5b9835e5
-
mentioned in commit 0da7ee3f
Please sign in to comment