s3:smbd only initialize kernel oplocks if they are enabled for a share
authorChristian Ambach <ambi@samba.org>
Fri, 30 Mar 2012 14:00:15 +0000 (16:00 +0200)
committerJeremy Allison <jra@samba.org>
Wed, 11 Apr 2012 18:11:40 +0000 (11:11 -0700)
Signed-off-by: Jeremy Allison <jra@samba.org>
source3/smbd/service.c

index c4d3486cdf6b662c816bed34e7bbc83345af8591..914cec86d8d87eca0e6d70b1417ba8ba0c449e5d 100644 (file)
@@ -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