summaryrefslogtreecommitdiff
path: root/firmware
diff options
context:
space:
mode:
authorBob Peterson <rpeterso@redhat.com>2017-07-26 18:57:35 +0300
committerBob Peterson <rpeterso@redhat.com>2017-08-09 17:36:39 +0300
commit645ebd49f0583f91234aa043ef71ddebe7e8351e (patch)
treed9c6acfb9b5f38574a8ed924c1a1eccf8de5e2cf /firmware
parent2d821a8b7192ed9d2ea0c30f3cb62b58aa46cf41 (diff)
downloadlinux-645ebd49f0583f91234aa043ef71ddebe7e8351e.tar.xz
GFS2: Don't waste time locking lru_lock for non-lru glocks
Before this patch, glock_dq would call gfs2_glock_remove_from_lru. For glocks that are never put on the LRU, such as the transaction glock, this just takes the spin_lock, determines there's nothing to be done because the list is empty, then unlocks again. This was causing unnecessary lock contention on the lru_lock spin_lock. This patch adds a check for GLOF_LRU in the glops before taking the spin_lock. Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Diffstat (limited to 'firmware')
0 files changed, 0 insertions, 0 deletions