mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +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>
This commit is contained in:
parent
cfa2c30830
commit
a2b081e159
@ -697,6 +697,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) {
|
||||
@ -841,6 +845,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;
|
||||
|
Loading…
Reference in New Issue
Block a user