GFS2: Ensure workqueue is scheduled after noexp request
authorBob Peterson <rpeterso@redhat.com>
Wed, 12 Mar 2014 14:32:20 +0000 (10:32 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Wed, 12 Mar 2014 14:45:48 +0000 (14:45 +0000)
commit01b172b7b10146cf5f02604047bee065cfb49946
tree44fd794c8d68bd1ebc7d330877eb5aa7e5c8de8c
parent48f8f711edf3868fe4faa28a19f07acb43532c4a
GFS2: Ensure workqueue is scheduled after noexp request

This patch closes a small timing window whereby a request to hold the
transaction glock can get stuck. The problem is that after the DLM has
granted the lock, it can get into a state whereby it doesn't transition
the glock to a held state, due to not having requeued the glock state
machine to finish the transition.

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