Bart Van Assche 0516c08d10 [SCSI] enable destruction of blocked devices which fail LUN scanning
If something goes wrong during LUN scanning, e.g. a transport layer
failure occurs, then __scsi_remove_device() can get invoked by the
LUN scanning code for a SCSI device in state SDEV_CREATED_BLOCK and
before the SCSI device has been added to sysfs (is_visible == 0).
Make sure that even in this case the transition into state SDEV_DEL
occurs. This avoids that __scsi_remove_device() can get invoked a
second time by scsi_forget_host() if this last function is invoked
from another thread than the thread that performs LUN scanning.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
2013-07-09 12:14:09 +01:00
..
2013-07-04 12:30:30 -07:00
2013-04-09 14:13:26 -04:00
2013-05-28 12:02:12 +02:00
2013-04-09 14:13:27 -04:00
2013-07-04 12:30:30 -07:00
2011-07-26 16:49:47 -07:00
2013-07-04 12:30:30 -07:00
2013-07-04 12:30:30 -07:00
2013-04-09 14:13:21 -04:00
2013-02-22 23:31:31 -05:00
2011-03-31 11:26:23 -03:00
2013-02-22 23:31:31 -05:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2013-04-09 14:13:15 -04:00
2013-04-09 14:13:22 -04:00
2010-11-16 13:33:23 -08:00
2013-04-09 14:13:23 -04:00
2013-04-09 14:13:24 -04:00
2013-02-27 19:10:18 -08:00
2013-04-09 14:13:24 -04:00
2011-03-31 11:26:23 -03:00
2013-04-09 14:13:24 -04:00
2010-11-16 13:33:23 -08:00
2013-04-09 14:13:17 -04:00
2013-04-09 14:13:17 -04:00
2013-04-09 14:13:23 -04:00
2011-05-01 10:22:40 -05:00
2013-04-09 14:13:17 -04:00
2010-11-16 13:33:23 -08:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:15 -04:00
2013-04-09 14:13:16 -04:00
2013-04-09 14:13:25 -04:00
2010-11-16 13:33:23 -08:00
2011-03-31 11:26:23 -03:00
2013-04-09 14:13:27 -04:00
2013-06-18 13:48:45 +02:00
2013-04-09 14:13:17 -04:00
2013-04-09 14:13:17 -04:00
2012-03-28 18:30:03 +01:00
2013-04-09 14:13:15 -04:00
2010-11-16 13:33:23 -08:00
2013-04-09 14:13:17 -04:00
2013-04-09 14:13:17 -04:00
2011-03-31 11:26:23 -03:00
2012-03-28 18:30:03 +01:00
2011-03-31 11:26:23 -03:00
2013-04-09 14:13:17 -04:00
2013-04-09 14:13:17 -04:00
2013-06-18 13:48:45 +02:00
2012-02-21 11:40:37 +01:00
2013-04-09 14:13:17 -04:00
2010-11-16 13:33:23 -08:00
2010-11-16 13:33:23 -08:00
2013-07-04 12:30:30 -07:00
2013-06-26 17:56:18 -07:00
2012-01-03 22:54:07 -05:00
2013-07-04 12:30:30 -07:00
2013-06-26 17:56:18 -07:00
2013-05-07 20:16:25 -07:00
2012-09-14 17:59:29 +01:00
2013-05-04 14:50:16 -04:00
2013-05-04 14:50:16 -04:00
2013-05-04 14:50:16 -04:00
2010-11-16 13:33:23 -08:00
2013-04-09 14:13:17 -04:00
2013-04-09 14:13:17 -04:00
2010-11-16 13:33:23 -08:00
2013-04-09 14:13:15 -04:00
2013-04-09 14:13:15 -04:00
2013-04-09 14:13:15 -04:00