summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2012-07-12 16:30:22 +0200
committerJeremy Allison <jra@samba.org>2012-07-18 15:46:54 -0700
commitfd351b6ebbb1b1447b7f8ab3081b762dde53709e (patch)
tree2a084177c42eeb48ec10c38b8d24842792cb261a
parentc4efaabbd94ee9139011547499e1a6fa4e43b282 (diff)
downloadsamba-fd351b6ebbb1b1447b7f8ab3081b762dde53709e.tar.gz
samba-fd351b6ebbb1b1447b7f8ab3081b762dde53709e.tar.bz2
samba-fd351b6ebbb1b1447b7f8ab3081b762dde53709e.zip
s3: Make us survive base-delaywrite with aio enabled
Signed-off-by: Jeremy Allison <jra@samba.org>
-rw-r--r--source3/smbd/aio.c4
1 files changed, 4 insertions, 0 deletions
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. */