s3: Make us survive base-delaywrite with aio enabled
authorVolker Lendecke <vl@samba.org>
Thu, 12 Jul 2012 14:30:22 +0000 (16:30 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 18 Jul 2012 22:46:54 +0000 (15:46 -0700)
Signed-off-by: Jeremy Allison <jra@samba.org>
source3/smbd/aio.c

index 5f9b5c0b1adac2ebe48728e5d61bbff6d2d02d80..9cb690d892f6f3ad51514e8a44d2e9d5f538704d 100644 (file)
@@ -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. */