From: Christian Ambach Date: Fri, 30 Mar 2012 14:00:15 +0000 (+0200) Subject: s3:smbd only initialize kernel oplocks if they are enabled for a share X-Git-Tag: ldb-1.1.6~130 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fbfbc6a252d3ab4e61d85abb7bc25e08f7b519eb;p=thirdparty%2Fsamba.git s3:smbd only initialize kernel oplocks if they are enabled for a share Signed-off-by: Jeremy Allison --- diff --git a/source3/smbd/service.c b/source3/smbd/service.c index c4d3486cdf6..914cec86d8d 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