mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
smb2_server: optimize SMB2_OP_KEEPALIVE (SMB2 Echo)
This is not strictly needed, but it helps profiling the core smb2_server.c code with the 'smb2.bench.echo' test. Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
parent
9aa440d52d
commit
a08f8b2a2c
@ -135,7 +135,6 @@ static const struct smbd_smb2_dispatch_table {
|
||||
.as_root = true,
|
||||
},{
|
||||
.opcode = SMB2_OP_KEEPALIVE,
|
||||
.as_root = true,
|
||||
},{
|
||||
.opcode = SMB2_OP_QUERY_DIRECTORY,
|
||||
.need_session = true,
|
||||
@ -3415,7 +3414,7 @@ skipped_signing:
|
||||
SMB_ASSERT(call->fileid_ofs == 0);
|
||||
/* This call needs to be run as root */
|
||||
change_to_root_user();
|
||||
} else {
|
||||
} else if (opcode != SMB2_OP_KEEPALIVE) {
|
||||
SMB_ASSERT(call->need_tcon);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user