Skip to content

Commit

Permalink
isci: Fixed BUG_ON in isci_abort_task_process_cb callback.
Browse files Browse the repository at this point in the history
The request may be in the "aborted" or the "completed" state when
performing a task management operation on it.

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 c3f42fe commit 70957a9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/scsi/isci/task.c
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,8 @@ static void isci_abort_task_process_cb(
* request state was already set to "aborted" by the abort
* task function.
*/
BUG_ON(old_request->status != aborted);
BUG_ON((old_request->status != aborted)
&& (old_request->status != completed));
break;

case isci_tmf_timed_out:
Expand Down

0 comments on commit 70957a9

Please sign in to comment.