Commit 70957a94 authored by Jeff Skirvin's avatar Jeff Skirvin Committed by Dan Williams

isci: Fixed BUG_ON in isci_abort_task_process_cb callback.

The request may be in the "aborted" or the "completed" state when
performing a task management operation on it.
Signed-off-by: default avatarJeff Skirvin <jeffrey.d.skirvin@intel.com>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent c3f42feb
...@@ -1116,7 +1116,8 @@ static void isci_abort_task_process_cb( ...@@ -1116,7 +1116,8 @@ static void isci_abort_task_process_cb(
* request state was already set to "aborted" by the abort * request state was already set to "aborted" by the abort
* task function. * task function.
*/ */
BUG_ON(old_request->status != aborted); BUG_ON((old_request->status != aborted)
&& (old_request->status != completed));
break; break;
case isci_tmf_timed_out: case isci_tmf_timed_out:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment