s3:smb2_server: use tevent_req_notify_callback() in smbd_smb2_request_pending_queue()
authorStefan Metzmacher <metze@samba.org>
Sat, 12 Oct 2013 00:40:12 +0000 (02:40 +0200)
committerStefan Metzmacher <metze@samba.org>
Wed, 27 Nov 2013 13:39:10 +0000 (14:39 +0100)
commitacfd4b068a5b99ac1d3fe716afff34cb7d2a0147
treea2ce6ce95b41d45e58c8c225f64130732d2d8945
parent4244a2686cddcdc754c284df884ae497afa4053a
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>
source3/smbd/smb2_server.c