diff options
author | Stefan Metzmacher <metze@samba.org> | 2014-10-31 11:15:50 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-11-19 20:51:37 +0100 |
commit | 0b0ac41aeafa358436efcd5801da3130d21e8c80 (patch) | |
tree | ec26e34d4c44110d630267a2e3925c338e26d1c6 /source3/smbd/smb2_notify.c | |
parent | cee1b4b0532d6271c2fc90fc2f82e9693a43d8ad (diff) | |
download | samba-0b0ac41aeafa358436efcd5801da3130d21e8c80.tar.gz samba-0b0ac41aeafa358436efcd5801da3130d21e8c80.tar.xz samba-0b0ac41aeafa358436efcd5801da3130d21e8c80.zip |
s3:smb2_server: use async smbprofile macros
This improves profiling and corrently counts the total and idle time for async
requests.
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd/smb2_notify.c')
-rw-r--r-- | source3/smbd/smb2_notify.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source3/smbd/smb2_notify.c b/source3/smbd/smb2_notify.c index 7b92927864..573635b89d 100644 --- a/source3/smbd/smb2_notify.c +++ b/source3/smbd/smb2_notify.c @@ -321,6 +321,7 @@ static struct tevent_req *smbd_smb2_notify_send(TALLOC_CTX *mem_ctx, /* allow this request to be canceled */ tevent_req_set_cancel_fn(req, smbd_smb2_notify_cancel); + SMBPROFILE_IOBYTES_ASYNC_SET_IDLE(state->smb2req->profile); return req; } @@ -337,6 +338,8 @@ static void smbd_smb2_notify_reply(struct smb_request *smbreq, return; } + SMBPROFILE_IOBYTES_ASYNC_SET_BUSY(state->smb2req->profile); + state->status = error_code; if (!NT_STATUS_IS_OK(error_code)) { /* nothing */ |