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>
Mon, 28 Feb 2022 15:26:41 +0000 (10:26 -0500)
commitbf27a962851b31e434783f8f4e32096914764e63
tree4aad2b72ad7bd6f6c298807c965fe80ed858698b
parentcd4fa4bf150c2a1b1c41b3d8f1b5ba18f090a1d0
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