]> git.baikalelectronics.ru Git - kernel.git/commit
GFS2: Allow caching of glocks for flock
authorBob Peterson <rpeterso@redhat.com>
Thu, 26 Jun 2014 14:47:48 +0000 (10:47 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Fri, 18 Jul 2014 10:14:12 +0000 (11:14 +0100)
commit285aeb0f78e2751259e7a8a647768e65eb36546f
tree48978e91d468e3e2ad446e272213f23c4fc3a572
parent4759227decb78cfccf086b2fdabcd82e57a0593a
GFS2: Allow caching of glocks for flock

This patch removes the GLF_NOCACHE flag from the glocks associated with
flocks. There should be no good reason not to cache glocks for flocks:
they only force the glock to be demoted before they can be reacquired,
which can slow down performance and even cause glock hangs, especially
in cases where the flocks are held in Shared (SH) mode.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/file.c