Inform level II oplock holders when we write using AIO
authorVolker Lendecke <vl@samba.org>
Tue, 19 Feb 2008 14:53:57 +0000 (15:53 +0100)
committerVolker Lendecke <vl@samba.org>
Tue, 19 Feb 2008 15:19:49 +0000 (16:19 +0100)
Jeremy, please check!

source/smbd/aio.c

index 86fdfe31b7162928bf66a6de1cb776bc86e915fa..5515582eecc10b5438c3caff56bda6958a144d73 100644 (file)
@@ -351,6 +351,8 @@ bool schedule_aio_write_and_X(connection_struct *conn,
                return False;
        }
 
+       release_level_2_oplocks_on_change(fsp);
+
        if (!write_through && !lp_syncalways(SNUM(fsp->conn))
            && fsp->aio_write_behind) {
                /* Lie to the client and immediately claim we finished the