summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorChristian Ambach <ambi@samba.org>2012-03-30 16:00:15 +0200
committerJeremy Allison <jra@samba.org>2012-04-11 11:11:40 -0700
commitfbfbc6a252d3ab4e61d85abb7bc25e08f7b519eb (patch)
treec12ead54ccc586a94af737217229f9ffa0296ccf /source3/smbd
parent1d9a3d488db2a9575ea1dc954c4d14b7d0a20204 (diff)
downloadsamba-fbfbc6a252d3ab4e61d85abb7bc25e08f7b519eb.tar.gz
samba-fbfbc6a252d3ab4e61d85abb7bc25e08f7b519eb.tar.bz2
samba-fbfbc6a252d3ab4e61d85abb7bc25e08f7b519eb.zip
s3:smbd only initialize kernel oplocks if they are enabled for a share
Signed-off-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/service.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/service.c b/source3/smbd/service.c
index c4d3486cdf..914cec86d8 100644
--- a/source3/smbd/service.c
+++ b/source3/smbd/service.c
@@ -709,6 +709,10 @@ static NTSTATUS make_connection_snum(struct smbd_server_connection *sconn,
}
}
+ if (lp_kernel_oplocks(snum)) {
+ init_kernel_oplocks(conn->sconn);
+ }
+
/*
* Fix compatibility issue pointed out by Volker.
* We pass the conn->connectpath to the preexec