vfs/default: store async VFS op duration we got from libasys
authorRalph Boehme <slow@samba.org>
Fri, 26 Feb 2016 11:29:02 +0000 (12:29 +0100)
committerJeremy Allison <jra@samba.org>
Wed, 2 Mar 2016 00:22:14 +0000 (01:22 +0100)
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/modules/vfs_default.c

index bfbc08938692516b46c1d4ed0d551f667775b1f2..64592a7e1001c722948e1fd61d9ed57ea995a766 100644 (file)
@@ -893,6 +893,7 @@ static void vfswrap_asys_finished(struct tevent_context *ev,
                SMBPROFILE_BYTES_ASYNC_END(state->profile_bytes);
                state->ret = result->ret;
                state->vfs_aio_state.error = result->err;
+               state->vfs_aio_state.duration = result->duration;
                tevent_req_defer_callback(req, ev);
                tevent_req_done(req);
        }