s3: smbd: Use identical logic to test for kernel oplocks on a share.
commit114f5da2fab6f587de77e792274b396fb3d7ce71
authorJeremy Allison <jra@samba.org>
Wed, 3 Jan 2018 17:52:33 +0000 (3 09:52 -0800)
committerVolker Lendecke <vl@samba.org>
Thu, 4 Jan 2018 15:03:38 +0000 (4 16:03 +0100)
treea4ec93194c98bf78475bf932e8770f4d680b7d2e
parent36ab213ae66bbbdc95569452e409f50bc866e2f1
s3: smbd: Use identical logic to test for kernel oplocks on a share.

Due to inconsistent use of lp_kernel_oplocks() we could miss kernel
oplocks being on/off in some of our oplock handling code, and thus
use the wrong logic.

Ensure all logic around koplocks and lp_kernel_oplocks() is consistent.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13193

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Thu Jan  4 16:03:38 CET 2018 on sn-devel-144
source3/smbd/oplock.c