sq P4.1: prepare smbd_smb2_flush_with_io_uring smb2srv:send_uring smb2srv:send_uring_...
authorStefan Metzmacher <metze@samba.org>
Mon, 24 Oct 2022 12:02:51 +0000 (14:02 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 16 Oct 2023 11:03:47 +0000 (13:03 +0200)
source3/smbd/smb2_server.c

index 776ec590e1657d02073e7d0b2173361b04821d78..158eab74e5723b359b098e336f0543a865fdac5f 100644 (file)
@@ -5107,7 +5107,11 @@ static NTSTATUS smbd_smb2_flush_with_io_uring(struct smbXsrv_connection *xconn)
                        if (lp_parm_bool(-1, "smb2srv", "send_uring_zc", false)) {
                                if (e->ack.req == NULL && features->op_sendmsg_zc) {
                                        DBG_DEBUG("%s:\n", __location__);
-                                       sqe->opcode = IORING_OP_SENDMSG_ZC;
+                                       io_uring_prep_sendmsg_zc(sqe,
+                                                                xconn->transport.sock,
+                                                                &e->msg,
+                                                                sendmsg_flags);
+                                       sqe->ioprio |= IORING_SEND_ZC_REPORT_USAGE;
                                }
                        }
                        if (lp_parm_bool(-1, "smb2srv", "send_uring_async", false)) {