GFS2: Don't add all glocks to the lru
authorBob Peterson <rpeterso@redhat.com>
Fri, 12 Jun 2015 18:15:54 +0000 (13:15 -0500)
committerBob Peterson <rpeterso@redhat.com>
Thu, 18 Jun 2015 17:17:59 +0000 (12:17 -0500)
The glocks used for resource groups often come and go hundreds of
thousands of times per second. Adding them to the lru list just
adds unnecessary contention for the lru_lock spin_lock, especially
considering we're almost certainly going to re-use the glock and
take it back off the lru microseconds later. We never want the
glock shrinker to cull them anyway. This patch adds a new bit in
the glops that determines which glock types get put onto the lru
list and which ones don't.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Acked-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/glock.c
fs/gfs2/glops.c
fs/gfs2/incore.h

diff --cc fs/gfs2/glock.c
Simple merge
diff --cc fs/gfs2/glops.c
Simple merge
Simple merge