GFS2: Optimize glock multiple-dequeue code
authorBob Peterson <rpeterso@redhat.com>
Thu, 10 Mar 2011 16:41:57 +0000 (11:41 -0500)
committerSteven Whitehouse <swhiteho@redhat.com>
Fri, 11 Mar 2011 09:24:54 +0000 (09:24 +0000)
commitfa1bbdea300a15ec7c1186a5e53de33a5b1672f5
tree7b10ada8427c40494bd752817f5ad9dc7f7db35d
parent0a33443b38746f35fc4acc8a5af6c7099e03ea40
GFS2: Optimize glock multiple-dequeue code

This is a small patch that optimizes multiple glock dequeue
operations.  It changes the unlock order to be more efficient
and makes it easier for lock debugging tools to unravel.  It
also eliminates the need for the temp variable x, although
that would likely be optimized out.

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