From f5dc8837d93372ab844028e160580803758204fa Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Fri, 6 Jul 2012 09:37:57 +0200 Subject: s3: Properly handle shutdown with the _send/_recv based aio Signed-off-by: Jeremy Allison --- source3/smbd/close.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'source3/smbd/close.c') 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 -- cgit