-/**
- * isci_request_signal_device_reset() - This function will set the "device
- * needs target reset" flag in the given sas_tasks' task_state_flags, and
- * then cause the task to be added into the SCSI error handler queue which
- * will eventually be escalated to a target reset.
- *
- *
- */
-static void isci_request_signal_device_reset(
- struct isci_request *isci_request)
-{
- unsigned long flags;
- struct sas_task *task = isci_request_access_task(isci_request);
-
- dev_dbg(&isci_request->isci_host->pdev->dev,
- "%s: request=%p, task=%p\n", __func__, isci_request, task);
-
- spin_lock_irqsave(&task->task_state_lock, flags);
- task->task_state_flags |= SAS_TASK_NEED_DEV_RESET;
- spin_unlock_irqrestore(&task->task_state_lock, flags);
-
- /* Cause this task to be scheduled in the SCSI error handler
- * thread.
- */
- sas_task_abort(task);
-}
-