diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2012-04-15 21:47:50 -0500 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2012-05-10 08:59:23 +0100 |
commit | 8fb2ef89b696624ea9853868e370d2e132e76f54 (patch) | |
tree | b10e8bc41a7d643a47dce1ac99567f4919e0a9fd /drivers/scsi/mpt2sas | |
parent | 7c018a901c3fef2af9d713ba849e8e52eb82dde1 (diff) | |
download | linux-8fb2ef89b696624ea9853868e370d2e132e76f54.tar.bz2 |
[SCSI] fc class: fix scanning when devs are offline
When a rport is added back or the role is changed the fc class
will queue a scan and then call scsi_target_unblock. The problem
with this is if the devices are in the SDEV_OFFLINE state and
the scan is run before the scsi_target_unblock, then the scan
will see LUN0 as offline and the scan will fail. This patch moves
the unblock call to before the scan, so we know the device state
will be set correctly when the scan is run.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/mpt2sas')
0 files changed, 0 insertions, 0 deletions