]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] scsi_scan: Cope with kthread_run failing
authorMatthew Wilcox <matthew@wil.cx>
Mon, 20 Aug 2007 15:18:48 +0000 (09:18 -0600)
committerJames Bottomley <jejb@mulgrave.localdomain>
Fri, 12 Oct 2007 18:51:06 +0000 (14:51 -0400)
commit1bce2e74f64f4a386c6140ab9e542ee9d4aceb15
treed70028d8df64fd12d8a583da18a31f9de6a853ae
parentd19d42badf38380e4489ec6fc4e1a8c408f4d677
[SCSI] scsi_scan: Cope with kthread_run failing

If kthread_run failed, we would fail to scan the host, and leak the
allocated async_scan_data.  Since using a separate thread is just an
optimisation, do the scan synchronously if we fail to spawn a thread.

Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/scsi_scan.c