]> git.karo-electronics.de Git - karo-tx-linux.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>
Fri, 10 Aug 2012 10:03:15 +0000 (11:03 +0100)
commit5ebeb16ea606f6d740606b2beff0613fb34fae31
tree33b4e8cf53aca3006cedabe4770997f5245f80a6
parentee6f203e76c5f7ed0ecb2ee99d93345f2c64ee0f
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