diff options
author | Jeff Skirvin <jeffrey.d.skirvin@intel.com> | 2011-03-31 16:10:34 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2011-07-03 07:00:36 -0400 |
commit | f219f010a355487638bf2fff4724a420e7158fd2 (patch) | |
tree | b35a711226078cdfb8a8c4c730a1d05832a5791e /drivers/scsi/isci/request.h | |
parent | de728b7d72089330603819a74255a0469780fd0e (diff) |
isci: Properly handle requests in the "aborting" state.
When a TMF times-out, the request is set back to "aborting".
Requests in the "aborting" state must be terminated when
LUN and device resets occur.
Signed-off-by: Jeff Skirvin <jeffrey.d.skirvin@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/request.h')
-rw-r--r-- | drivers/scsi/isci/request.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/isci/request.h b/drivers/scsi/isci/request.h index 4a63bb6de44e..0c08da6bcd8a 100644 --- a/drivers/scsi/isci/request.h +++ b/drivers/scsi/isci/request.h | |||
@@ -199,7 +199,7 @@ static inline enum isci_request_status isci_request_change_started_to_newstate( | |||
199 | 199 | ||
200 | old_state = isci_request->status; | 200 | old_state = isci_request->status; |
201 | 201 | ||
202 | if (old_state == started) { | 202 | if (old_state == started || old_state == aborting) { |
203 | BUG_ON(isci_request->io_request_completion != NULL); | 203 | BUG_ON(isci_request->io_request_completion != NULL); |
204 | 204 | ||
205 | isci_request->io_request_completion = completion_ptr; | 205 | isci_request->io_request_completion = completion_ptr; |