mirror of
https://github.com/samba-team/samba.git
synced 2025-08-02 00:22:11 +03:00
smbd/aio: Do not go async for SMB2 compound requests
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13047
Signed-off-by: Christof Schmitt <cs@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit a2b081e159
)
This commit is contained in:
committed by
Karolin Seeger
parent
13da33f236
commit
d0055479b3
@ -707,6 +707,10 @@ NTSTATUS schedule_smb2_aio_read(connection_struct *conn,
|
||||
return NT_STATUS_RETRY;
|
||||
}
|
||||
|
||||
if (smbd_smb2_is_compound(smbreq->smb2req)) {
|
||||
return NT_STATUS_RETRY;
|
||||
}
|
||||
|
||||
/* Create the out buffer. */
|
||||
*preadbuf = data_blob_talloc(ctx, NULL, smb_maxcnt);
|
||||
if (preadbuf->data == NULL) {
|
||||
@ -856,6 +860,10 @@ NTSTATUS schedule_aio_smb2_write(connection_struct *conn,
|
||||
return NT_STATUS_RETRY;
|
||||
}
|
||||
|
||||
if (smbd_smb2_is_compound(smbreq->smb2req)) {
|
||||
return NT_STATUS_RETRY;
|
||||
}
|
||||
|
||||
if (smbreq->unread_bytes) {
|
||||
/* Can't do async with recvfile. */
|
||||
return NT_STATUS_RETRY;
|
||||
|
Reference in New Issue
Block a user