From 33f663b25206c6cc4b2c33dfca3983d9dfee73dc Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 30 Mar 2006 01:09:46 +0000 Subject: r14792: when we enable fake oplocks, give out batch oplocks not exclusive oplocks (This used to be commit 182aee1a213c1219772895deed31e1ed8aed00c4) --- source4/ntvfs/posix/pvfs_open.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4') diff --git a/source4/ntvfs/posix/pvfs_open.c b/source4/ntvfs/posix/pvfs_open.c index 3c3e13bc91..1b1c32cab5 100644 --- a/source4/ntvfs/posix/pvfs_open.c +++ b/source4/ntvfs/posix/pvfs_open.c @@ -710,7 +710,7 @@ static NTSTATUS pvfs_create_file(struct pvfs_state *pvfs, if (pvfs->flags & PVFS_FLAG_FAKE_OPLOCKS) { - io->generic.out.oplock_level = OPLOCK_EXCLUSIVE; + io->generic.out.oplock_level = OPLOCK_BATCH; } else { io->generic.out.oplock_level = OPLOCK_NONE; } @@ -1238,7 +1238,7 @@ NTSTATUS pvfs_open(struct ntvfs_module_context *ntvfs, talloc_free(lck); if (pvfs->flags & PVFS_FLAG_FAKE_OPLOCKS) { - io->generic.out.oplock_level = OPLOCK_EXCLUSIVE; + io->generic.out.oplock_level = OPLOCK_BATCH; } else { io->generic.out.oplock_level = OPLOCK_NONE; } -- cgit