s3:smb2_server: use tevent_req_notify_callback() in smbd_smb2_request_pending_queue()
commit6d4df0f796fdb36f31a7176b8ed6a198e82d9c0c
authorStefan Metzmacher <metze@samba.org>
Sat, 12 Oct 2013 00:40:12 +0000 (12 02:40 +0200)
committerKarolin Seeger <kseeger@samba.org>
Tue, 10 Dec 2013 11:58:35 +0000 (10 12:58 +0100)
tree9f5e466c599c2e85bccccf50811da9f3ea0e2e23
parente2169a754869b27a5939595588c9991627d2262e
s3:smb2_server: use tevent_req_notify_callback() in smbd_smb2_request_pending_queue()

If the request is already done we can avoid one iteration
of tevent_loop_once(), which means we avoids one
talloc_stackframe_pool/talloc_free pair.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: David Disseldorp <ddiss@samba.org>
(cherry picked from commit acfd4b068a5b99ac1d3fe716afff34cb7d2a0147)
source3/smbd/smb2_server.c