From: Alan Stern Date: Thu, 7 Jun 2007 21:12:25 +0000 (-0400) Subject: USB: usb-storage: use kthread_stop() for the control thread X-Git-Tag: v2.6.23-rc1~1083^2~85 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed76cacbea08ebfdb678c8687f98237cb7c67bb6;p=pandora-kernel.git USB: usb-storage: use kthread_stop() for the control thread This patch (as923) makes usb-storage's control thread use kthread_should_stop()/kthread_stop(). The scanning thread can't be similarly converted until the core kthread implementation allows threads to call do_exit(). The advantage of this change is that we can now be certain the control thread has terminated before storage_disconnect() returns. This will simplify the locking requirements when autosuspend support is added. Signed-off-by: Alan Stern Signed-off-by: Matthew Dharm Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed