git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0454e5b
)
sq P4.1: prepare smbd_smb2_flush_with_io_uring smb2srv:send_uring smb2srv:send_uring_...
author
Stefan Metzmacher
<metze@samba.org>
Mon, 24 Oct 2022 12:02:51 +0000
(14:02 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Mon, 16 Oct 2023 11:03:47 +0000
(13:03 +0200)
source3/smbd/smb2_server.c
patch
|
blob
|
history
diff --git
a/source3/smbd/smb2_server.c
b/source3/smbd/smb2_server.c
index 776ec590e1657d02073e7d0b2173361b04821d78..158eab74e5723b359b098e336f0543a865fdac5f 100644
(file)
--- a/
source3/smbd/smb2_server.c
+++ b/
source3/smbd/smb2_server.c
@@
-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)) {