From fbfbc6a252d3ab4e61d85abb7bc25e08f7b519eb Mon Sep 17 00:00:00 2001 From: Christian Ambach Date: Fri, 30 Mar 2012 16:00:15 +0200 Subject: s3:smbd only initialize kernel oplocks if they are enabled for a share Signed-off-by: Jeremy Allison --- source3/smbd/service.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source3/smbd') 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 -- cgit