diff options
Diffstat (limited to 'drivers/scsi/isci')
-rw-r--r-- | drivers/scsi/isci/host.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/scsi/isci/host.c b/drivers/scsi/isci/host.c index 508aa8ce25b4..e3cf3832c5b6 100644 --- a/drivers/scsi/isci/host.c +++ b/drivers/scsi/isci/host.c | |||
@@ -650,15 +650,13 @@ static void isci_host_start_complete(struct isci_host *ihost, enum sci_status co | |||
650 | 650 | ||
651 | int isci_host_scan_finished(struct Scsi_Host *shost, unsigned long time) | 651 | int isci_host_scan_finished(struct Scsi_Host *shost, unsigned long time) |
652 | { | 652 | { |
653 | struct isci_host *ihost = SHOST_TO_SAS_HA(shost)->lldd_ha; | 653 | struct sas_ha_struct *ha = SHOST_TO_SAS_HA(shost); |
654 | struct isci_host *ihost = ha->lldd_ha; | ||
654 | 655 | ||
655 | if (test_bit(IHOST_START_PENDING, &ihost->flags)) | 656 | if (test_bit(IHOST_START_PENDING, &ihost->flags)) |
656 | return 0; | 657 | return 0; |
657 | 658 | ||
658 | /* todo: use sas_flush_discovery once it is upstream */ | 659 | sas_drain_work(ha); |
659 | scsi_flush_work(shost); | ||
660 | |||
661 | scsi_flush_work(shost); | ||
662 | 660 | ||
663 | dev_dbg(&ihost->pdev->dev, | 661 | dev_dbg(&ihost->pdev->dev, |
664 | "%s: ihost->status = %d, time = %ld\n", | 662 | "%s: ihost->status = %d, time = %ld\n", |