Skip to content

Commit

Permalink
isci: All pending requests are terminated before stopping the device.
Browse files Browse the repository at this point in the history
Make sure all pending I/O including any in the libsas error handler
process is cleaned-up.

Signed-off-by: Jeff Skirvin <jeffrey.d.skirvin@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
  • Loading branch information
Jeff Skirvin authored and Dan Williams committed Jul 3, 2011
1 parent aa14510 commit 6e2802a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/scsi/isci/remote_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,10 @@ enum sci_status isci_remote_device_stop(struct isci_host *ihost, struct isci_rem
"%s: isci_device = %p\n", __func__, idev);

isci_remote_device_change_state(idev, isci_stopping);

/* Kill all outstanding requests. */
isci_remote_device_nuke_requests(idev);

set_bit(IDEV_STOP_PENDING, &idev->flags);

spin_lock_irqsave(&ihost->scic_lock, flags);
Expand Down

0 comments on commit 6e2802a

Please sign in to comment.