From: Matthew Wilcox Date: Mon, 20 Aug 2007 15:18:48 +0000 (-0600) Subject: [SCSI] scsi_scan: Cope with kthread_run failing X-Git-Tag: v2.6.24-rc1~1290^2~74 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a57b1fccdfa65b78481f5e651833d979e545de04;p=pandora-kernel.git [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 Signed-off-by: James Bottomley --- Reading git-diff-tree failed