fs/lock: only call lm_breaker_owns_lease if there is conflict.
authorDai Ngo <dai.ngo@oracle.com>
Sat, 12 Feb 2022 18:12:54 +0000 (10:12 -0800)
committerChuck Lever <chuck.lever@oracle.com>
Wed, 16 Feb 2022 17:39:03 +0000 (12:39 -0500)
commit07a9d5002d107664e438649b073b94fc7edd1ab6
treed80673f335a350f5f628e9e596608e06f4e47fac
parent1ef6b9b682aade0cf5547e6a0f69a184383159c6
fs/lock: only call lm_breaker_owns_lease if there is conflict.

Modify leases_conflict to call lm_breaker_owns_lease only if
there is real conflict.  This is to allow the lock manager to
resolve the conflict if possible.

Signed-off-by: Dai Ngo <dai.ngo@oracle.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Acked-by: Jeff Layton <jlayton@redhat.com>
fs/locks.c