Re: [PATCH v2] io_uring/net: use REQ_F_IMPORT_BUFFER for send_zc

From: Pavel Begunkov
Date: Wed Mar 26 2025 - 06:01:21 EST


On 3/25/25 14:39, Caleb Sander Mateos wrote:
Instead of a bool field in struct io_sr_msg, use REQ_F_IMPORT_BUFFER to
track whether io_send_zc() has already imported the buffer. This flag
already serves a similar purpose for sendmsg_zc and {read,write}v_fixed.

It didn't apply cleanly to for-6.15/io_uring-reg-vec, but otherwise
looks good.

Reviewed-by: Pavel Begunkov <asml.silence@xxxxxxxxx>

Signed-off-by: Caleb Sander Mateos <csander@xxxxxxxxxxxxxxx>
Suggested-by: Pavel Begunkov <asml.silence@xxxxxxxxx>

Note for the future, it's a good practice to put your sob last.

--
Pavel Begunkov