]> git.baikalelectronics.ru Git - kernel.git/commit
[SCSI] libsas: don't mark expanders as gone when a child device is removed
authorDan Williams <dan.j.williams@intel.com>
Wed, 21 Dec 2011 22:55:38 +0000 (14:55 -0800)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 29 Feb 2012 18:51:48 +0000 (12:51 -0600)
commit3c410d532e9d0e7117cb07de1199fa100a3230b1
treebe2eabce601aca56bd5861f71049da96f6aef3cc
parentb67617e4896f6840b2c90b74ec46568339d57f10
[SCSI] libsas: don't mark expanders as gone when a child device is removed

Commit b30f479d "[SCSI] libsas: Don't issue commands to devices that
have been hot-removed" marked the parent device of an end-device as gone
when all the phys to the end device have been deleted.

The expander device is still present until its parent is removed.  This
is a benign change until the smp_execute_task() path is taught to check
->gone.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/libsas/sas_expander.c