]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[GFS2] check kthread_should_stop when waiting
authorDavid Teigland <teigland@redhat.com>
Wed, 7 Nov 2007 15:03:56 +0000 (09:03 -0600)
committerSteven Whitehouse <swhiteho@redhat.com>
Fri, 25 Jan 2008 08:07:49 +0000 (08:07 +0000)
commit8cbc4342478311c2a85260a7ca54d96cb7f71f7b
tree23a8ab6a4a2c154274d01cfe0e69715cd7ad4d86
parentc7227e46423a57b4df27a2d75b5869bd3ae654d0
[GFS2] check kthread_should_stop when waiting

Use wait_event_interruptible() in the lock_dlm thread instead
of an open coded equivalent, and include a kthread_should_stop()
check in the wait test so we don't miss a kthread_stop().

Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/locking/dlm/thread.c