From fd351b6ebbb1b1447b7f8ab3081b762dde53709e Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Thu, 12 Jul 2012 16:30:22 +0200 Subject: s3: Make us survive base-delaywrite with aio enabled Signed-off-by: Jeremy Allison --- source3/smbd/aio.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/smbd') diff --git a/source3/smbd/aio.c b/source3/smbd/aio.c index 5f9b5c0b1a..9cb690d892 100644 --- a/source3/smbd/aio.c +++ b/source3/smbd/aio.c @@ -467,6 +467,8 @@ static void aio_pwrite_smb1_done(struct tevent_req *req) /* Unlock now we're done. */ SMB_VFS_STRICT_UNLOCK(fsp->conn, fsp, &aio_ex->lock); + mark_file_modified(fsp); + if (fsp->aio_write_behind) { if (nwritten != numtowrite) { @@ -700,6 +702,8 @@ static void aio_pread_smb2_done(struct tevent_req *req) /* Unlock now we're done. */ SMB_VFS_STRICT_UNLOCK(fsp->conn, fsp, &aio_ex->lock); + mark_file_modified(fsp); + /* Common error or success code processing for async or sync read returns. */ -- cgit