From: Amit Gud Date: Thu, 2 Apr 2009 21:01:27 +0000 (-0400) Subject: Btrfs: fix race in worker_loop X-Git-Tag: v2.6.30-rc1~222^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5555f77115bfba3630fefff2d4e68140b644171;p=pandora-kernel.git Btrfs: fix race in worker_loop Need to check kthread_should_stop after schedule_timeout() before calling schedule(). This causes threads to sleep with potentially no one to wake them up causing mount(2) to hang in btrfs_stop_workers waiting for threads to stop. Signed-off-by: Amit Gud Signed-off-by: Chris Mason --- Reading git-diff-tree failed