summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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. */