s3:smb2_server: use tevent_req_notify_callback() in smbd_smb2_request_pending_queue()
commit79c54dc79842542b2c9f371d485e4642e639fb25
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:57:30 +0000 (10 12:57 +0100)
tree742bfb053c19784276a36695b8755c24c9b3ae5d
parent1b3cf43e423afedf33f8db3b4cd8cf26cda6e019
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