aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/scsi/isci/remote_device.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/isci/remote_device.c b/drivers/scsi/isci/remote_device.c
index 1dae2184b9e9..6fe6815e4b74 100644
--- a/drivers/scsi/isci/remote_device.c
+++ b/drivers/scsi/isci/remote_device.c
@@ -380,6 +380,10 @@ enum sci_status isci_remote_device_stop(struct isci_host *ihost, struct isci_rem
380 "%s: isci_device = %p\n", __func__, idev); 380 "%s: isci_device = %p\n", __func__, idev);
381 381
382 isci_remote_device_change_state(idev, isci_stopping); 382 isci_remote_device_change_state(idev, isci_stopping);
383
384 /* Kill all outstanding requests. */
385 isci_remote_device_nuke_requests(idev);
386
383 set_bit(IDEV_STOP_PENDING, &idev->flags); 387 set_bit(IDEV_STOP_PENDING, &idev->flags);
384 388
385 spin_lock_irqsave(&ihost->scic_lock, flags); 389 spin_lock_irqsave(&ihost->scic_lock, flags);