1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-05 20:58:40 +03:00

smbd: Simplify delay_for_oplock()

Use is_same_lease()

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Böhme <slow@samba.org>
This commit is contained in:
Volker Lendecke 2019-08-10 15:01:24 +02:00 committed by Jeremy Allison
parent 021e2d01e6
commit 28868d2457

@ -1888,11 +1888,7 @@ static bool delay_for_oplock(files_struct *fsp,
NTSTATUS status;
if (lease != NULL) {
bool our_lease = smb2_lease_equal(
fsp_client_guid(fsp),
&lease->lease_key,
&e->client_guid,
&e->lease_key);
bool our_lease = is_same_lease(fsp, e, lease);
if (our_lease) {
DBG_DEBUG("Ignoring our own lease\n");
continue;