summaryrefslogtreecommitdiffstats
path: root/crypto/michael_mic.c
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2024-09-09 23:38:59 +0200
committerAndreas Gruenbacher <agruenba@redhat.com>2024-11-05 12:39:28 +0100
commitee51baa817eec7c5182c1e4450c4d1e8469faa96 (patch)
tree814fcde110cb5469e4820c32eeff0d46f9df6e55 /crypto/michael_mic.c
parentKMSAN: uninit-value in inode_go_dump (5) (diff)
downloadlinux-ee51baa817eec7c5182c1e4450c4d1e8469faa96.tar.xz
linux-ee51baa817eec7c5182c1e4450c4d1e8469faa96.zip
gfs2: Faster gfs2_upgrade_iopen_glock wakeups
Move function needs_demote() to glock.h and rename it to glock_needs_demote(). In handle_callback(), wake up the glock when setting the GLF_PENDING_DEMOTE flag as well. (Setting the GLF_DEMOTE flag already triggered a wake-up.) With that, check for glock_needs_demote() in gfs2_upgrade_iopen_glock() to wake up when either of those flags is set for the inode glock: the faster we can react to contention, the better. The GLF_PENDING_DEMOTE flag is only used for inode glocks (see gfs2_glock_cb()) so it's okay to only check for the GLF_DEMOTE flag in gfs2_drop_inode(). Still, using glock_needs_demote() there as well makes the code a little easier to read. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Diffstat (limited to 'crypto/michael_mic.c')
0 files changed, 0 insertions, 0 deletions