GFS2: Fix potential race in glock code
authorSteven Whitehouse <swhiteho@redhat.com>
Tue, 22 Sep 2009 09:56:16 +0000 (10:56 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Thu, 3 Dec 2009 11:42:25 +0000 (11:42 +0000)
commit7e71c55ee73988d0cb61045660b899eaac23bf8f
treeef96dc44cd067cc758a8df0408ba36818c9ebc35
parent22763c5cf3690a681551162c15d34d935308c8d7
GFS2: Fix potential race in glock code

We need to be careful of the ordering between clearing the
GLF_LOCK bit and scheduling the workqueue.

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