scsi_scan.c (9e9fd65d1fa51d919d54d731be0e66492b5b6c5a) | scsi_scan.c (3b661a92e869ebe2358de8f4b3230ad84f7fce51) |
---|---|
1/* 2 * scsi_scan.c 3 * 4 * Copyright (C) 2000 Eric Youngdale, 5 * Copyright (C) 2002 Patrick Mansfield 6 * 7 * The general scanning/probing algorithm is as follows, exceptions are 8 * made to it depending on device specific flags, compilation options, and --- 1703 unchanged lines hidden (view full) --- 1712 1713 return 0; 1714} 1715 1716static void scsi_sysfs_add_devices(struct Scsi_Host *shost) 1717{ 1718 struct scsi_device *sdev; 1719 shost_for_each_device(sdev, shost) { | 1/* 2 * scsi_scan.c 3 * 4 * Copyright (C) 2000 Eric Youngdale, 5 * Copyright (C) 2002 Patrick Mansfield 6 * 7 * The general scanning/probing algorithm is as follows, exceptions are 8 * made to it depending on device specific flags, compilation options, and --- 1703 unchanged lines hidden (view full) --- 1712 1713 return 0; 1714} 1715 1716static void scsi_sysfs_add_devices(struct Scsi_Host *shost) 1717{ 1718 struct scsi_device *sdev; 1719 shost_for_each_device(sdev, shost) { |
1720 /* target removed before the device could be added */ 1721 if (sdev->sdev_state == SDEV_DEL) 1722 continue; |
|
1720 if (!scsi_host_scan_allowed(shost) || 1721 scsi_sysfs_add_sdev(sdev) != 0) 1722 __scsi_remove_device(sdev); 1723 } 1724} 1725 1726/** 1727 * scsi_prep_async_scan - prepare for an async scan --- 229 unchanged lines hidden --- | 1723 if (!scsi_host_scan_allowed(shost) || 1724 scsi_sysfs_add_sdev(sdev) != 0) 1725 __scsi_remove_device(sdev); 1726 } 1727} 1728 1729/** 1730 * scsi_prep_async_scan - prepare for an async scan --- 229 unchanged lines hidden --- |