From d0f5c69b11a72fcaf120bae664448001a2f22814 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 12 Feb 2019 08:08:38 +0100 Subject: [PATCH] smb2_server: allow smbd_smb2_request_pending_queue(0) to avoid STATUS_PENDING This has the same meaning as smb2_request_set_async_internal(), but this will simplifies callers. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13698 BUG: https://bugzilla.samba.org/show_bug.cgi?id=13796 Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme Reviewed-by: Jeremy Allison (cherry picked from commit 4760b85243f335bb2094fc779802ce4b52db0ccb) --- source3/smbd/smb2_server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c index 1e9ed331aa6..174b906f8b6 100644 --- a/source3/smbd/smb2_server.c +++ b/source3/smbd/smb2_server.c @@ -1391,7 +1391,7 @@ NTSTATUS smbd_smb2_request_pending_queue(struct smbd_smb2_request *req, return NT_STATUS_OK; } - if (req->async_internal) { + if (req->async_internal || defer_time == 0) { /* * An SMB2 request implementation wants to handle the request * asynchronously "internally" while keeping synchronous -- 2.11.4.GIT