]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
USB: usb-storage: use kthread_stop() for the control thread
authorAlan Stern <stern@rowland.harvard.edu>
Thu, 7 Jun 2007 21:12:25 +0000 (17:12 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 12 Jul 2007 23:34:31 +0000 (16:34 -0700)
commited76cacbea08ebfdb678c8687f98237cb7c67bb6
treebb3c3f759e36d1ae3c6c5b422ec74304e4ce2502
parent3fc154b6b8134b98bb94d60cad9a46ec1ffbe372
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 <stern@rowland.harvard.edu>
Signed-off-by: Matthew Dharm <mdharm-usb@one-eyed-alien.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/storage/usb.c
drivers/usb/storage/usb.h