]> git.baikalelectronics.ru Git - kernel.git/commit
GFS2: Eliminate redundant calls to may_grant
authorBob Peterson <rpeterso@redhat.com>
Thu, 9 Aug 2012 17:48:46 +0000 (12:48 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 24 Sep 2012 09:47:12 +0000 (10:47 +0100)
commit43c6502979c4c7825b84495a31133f1fbab83016
treeaadd0c310d733c1a64cda0aaabcb4a063ae32285
parentcce1bd478698b574f011ca445f76663a439b99a2
GFS2: Eliminate redundant calls to may_grant

Function add_to_queue was checking may_grant for the passed-in
holder for every iteration of its gh2 loop. Now it only checks it
once at the beginning to see if a try lock is futile.

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