summaryrefslogtreecommitdiff
path: root/rust/helpers/helpers.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2024-10-29 00:18:32 +0300
committerAndreas Gruenbacher <agruenba@redhat.com>2024-11-05 14:39:29 +0300
commitb6900ce15191ff9e219f1974b5db107ae02bb387 (patch)
treedef17bd4f5c5ef1c0d6f68bee3a98cd9e79a572a /rust/helpers/helpers.c
parent03ff3781bf6c149554d88e7b702a3abd5e400dc0 (diff)
downloadlinux-b6900ce15191ff9e219f1974b5db107ae02bb387.tar.xz
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>
Diffstat (limited to 'rust/helpers/helpers.c')
0 files changed, 0 insertions, 0 deletions