]> www.infradead.org Git - users/jedix/linux-maple.git/commit
gfs2: Simplify DLM_LKF_QUECVT use
authorAndreas Gruenbacher <agruenba@redhat.com>
Mon, 28 Oct 2024 21:18:32 +0000 (22:18 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 5 Nov 2024 11:39:29 +0000 (12:39 +0100)
commitb6900ce15191ff9e219f1974b5db107ae02bb387
treedef17bd4f5c5ef1c0d6f68bee3a98cd9e79a572a
parent03ff3781bf6c149554d88e7b702a3abd5e400dc0
gfs2: Simplify DLM_LKF_QUECVT use

The DLM_LKF_QUECVT flag needs to be set for "upward" lock conversions to
ensure fairness, but setting it for "downward" lock conversions will
lead to a failure.  The flag is currently set based on the GLF_BLOCKING
flag and it's not immediately obvious why this is correct.  Simplify
things by figuring out if a lock conversion is "upward" by looking at
the before and after locking modes instead of relying on the
GLF_BLOCKING flag.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/lock_dlm.c