diff options
author | Volker Lendecke <vl@samba.org> | 2012-07-06 09:37:57 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2012-07-18 15:37:28 -0700 |
commit | f5dc8837d93372ab844028e160580803758204fa (patch) | |
tree | 6b5aca92e8867a37e2d3b2b2659c449a2d6d0a5a /source3/smbd/close.c | |
parent | aff6956d350272bee6f0b968271ec3200c718095 (diff) | |
download | samba-f5dc8837d93372ab844028e160580803758204fa.tar.gz samba-f5dc8837d93372ab844028e160580803758204fa.tar.bz2 samba-f5dc8837d93372ab844028e160580803758204fa.zip |
s3: Properly handle shutdown with the _send/_recv based aio
Signed-off-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd/close.c')
-rw-r--r-- | source3/smbd/close.c | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/source3/smbd/close.c b/source3/smbd/close.c index 8633f82c0a..720ffa7b64 100644 --- a/source3/smbd/close.c +++ b/source3/smbd/close.c @@ -706,17 +706,8 @@ static NTSTATUS close_normal_file(struct smb_request *req, files_struct *fsp, NTSTATUS status = NT_STATUS_OK; NTSTATUS tmp; connection_struct *conn = fsp->conn; - int ret; - /* - * If we're finishing async io on a close we can get a write - * error here, we must remember this. - */ - ret = wait_for_aio_completion(fsp); - if (ret) { - status = ntstatus_keeperror( - status, map_nt_error_from_unix(ret)); - } + aio_fsp_close(fsp); /* * If we're flushing on a close we can get a write |