]> git.baikalelectronics.ru Git - kernel.git/commit
[GFS2] Handle multiple glock demote requests
authorWendy Cheng <wcheng@redhat.com>
Fri, 5 Oct 2007 04:27:58 +0000 (00:27 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Fri, 25 Jan 2008 08:07:09 +0000 (08:07 +0000)
commit156dfdebf4bfac599fcbc439bcc04d95cf2a761c
tree65871c8ec495401846bc9e7030a89d3c6335f5ee
parent537016687aacd7e98d64c68cb1152a93eb5bb6f7
[GFS2] Handle multiple glock demote requests

Fix a race condition where multiple glock demote requests are sent to
a node back-to-back. This patch does a check inside handle_callback()
to see whether a demote request is in progress. If true, it sets a flag
to make sure run_queue() will loop again to handle the new request,
instead of erronously setting gl_demote_state to a different state.

Signed-off-by: S. Wendy Cheng <wcheng@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/glock.c
fs/gfs2/incore.h