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:
b348249
)
sq sq smbd_smb2_recv_completion_io_uring
author
Stefan Metzmacher
<metze@samba.org>
Tue, 27 Sep 2022 17:56:58 +0000
(19:56 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Mon, 16 Oct 2023 11:03:51 +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 0889eb1406eed9d58ce8ad34f38531e5db990e82..a5229bae49d6db763f837c87a58169bcaa38462a 100644
(file)
--- a/
source3/smbd/smb2_server.c
+++ b/
source3/smbd/smb2_server.c
@@
-310,7
+310,7
@@
static void smbd_smb2_request_read_state_destructor_completion_io_uring(struct s
static int smbd_smb2_request_read_state_destructor(struct smbd_smb2_request_read_state *state)
{
-
bool
pending;
+
size_t
pending;
if (state->xconn != NULL && state->xconn->smb2.recv_uring != NULL) {
samba_io_uring_cancel_submissions(state->xconn->smb2.recv_uring,
@@
-318,7
+318,7
@@
static int smbd_smb2_request_read_state_destructor(struct smbd_smb2_request_read
}
pending = samba_io_uring_completion_pending(&state->io_uring.completion);
- if (
!pending
) {
+ if (
pending == 0
) {
return 0;
}