USB: Wait for USB and SCSI block boot devices
Subsystems (3)
PATCH 5/5 USB: Wait for USB and SCSI block boot devices
From: Alan Stern <[email protected]
Add synchronization for USB and SCSI block devices.
--- drivers/scsi/scsi_scan.c | 2 ++ drivers/usb/storage/usb.c | 2 ++ 2 files changed, 4 insertions(+), 0 deletions(-)
drivers/scsi/scsi_scan.c +2 -0
@@ -1834,6 +1834,7 @@ static int do_scan_async(void *_data)struct async_scan_data *data = _data;do_scsi_scan_host (data->shost);scsi_finish_async_scan (data); +bootdev_probe_done (BOOTDEV_BLOCK_MASK );return 0 ; }
@@ -1855,6 +1856,7 @@ void scsi_scan_host(struct Scsi_Host *shost)return ; } +bootdev_found (BOOTDEV_BLOCK_MASK ); p =kthread_run (do_scan_async, data,"scsi_scan_%d" , shost->host_no);if (IS_ERR (p))do_scan_async (data);
drivers/usb/storage/usb.c +2 -0
@@ -810,6 +810,7 @@ static int usb_stor_scan_thread(void * __us)printk (KERN_DEBUG "usb-storage: device found at %d\n" , us->pusb_dev->devnum); +bootdev_found (BOOTDEV_BLOCK_MASK );set_freezable ();/* Wait for the timeout to expire or for a disconnect */
@@ -837,6 +838,7 @@ static int usb_stor_scan_thread(void * __us)/* Should we unbind if no devices were detected? */ } +bootdev_probe_done (BOOTDEV_BLOCK_MASK );complete_and_exit (&us->scanning_done,0 ); }
drivers/scsi/scsi_scan.c void scsi_scan_host(struct Scsi_Host *shost) · line 1861
Quoted 12 lines · David VomLehn
drivers/scsi/scsi_scan.c +2
-0scsi_finish_async_scan (data); +bootdev_probe_done (BOOTDEV_BLOCK_MASK );return 0 ; }@@ -1855,6 +1856,7 @@ void scsi_scan_host(struct Scsi_Host *shost)return ; } +bootdev_found (BOOTDEV_BLOCK_MASK ); p =kthread_run (do_scan_async, data,"scsi_scan_%d" , shost->host_no);if (IS_ERR (p))
Where are the definitions of these functions to be found?
Signature · 8 lines
Matthew Wilcox Intel Open Source Technology Centre "Bill, look, we understand that you're interested in selling us this operating system, but compare it to ours. We can't possibly take such a retrograde step." -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 10 lines · Matthew Wilcox
Quoted 9 lines · David VomLehn
drivers/scsi/scsi_scan.c +1
-0scsi_finish_async_scan (data); +bootdev_probe_done (BOOTDEV_BLOCK_MASK );return 0 ; }@@ -1855,6 +1856,7 @@ void scsi_scan_host(struct Scsi_Host *shost)return ; }
Quoted 5 lines
drivers/scsi/scsi_scan.c void scsi_scan_host(struct Scsi_Host *shost) · line 1861
Quoted 3 lines
drivers/scsi/scsi_scan.c +1
-0+bootdev_found (BOOTDEV_BLOCK_MASK ); p =kthread_run (do_scan_async, data,"scsi_scan_%d" , shost->host_no);if (IS_ERR (p))Where are the definitions of these functions to be found?
My email has been on the flaky side and I may not have sent them to all the right places. I'll resend.
Quoted 1 line
Matthew Wilcox Intel Open Source Technology Centre
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html