/* Normally the management layer sets the task to aborted state, and then calls query task and then abort task.  */
int asd_query_task(struct sas_task *task)
/* Normally the management layer sets the task to aborted state, and then calls query task and then abort task.  */
int asd_query_task(struct sas_task *task)
{
	struct asd_ascb *ascb = task->lldd_task;
	int index;
	if (ascb) {
		index = ascb->tc_index;
		return asd_initiate_ssp_tmf(task->dev, task->ssp_task.LUN,
					    TMF_QUERY_TASK, index);
	}
	return TMF_RESP_FUNC_COMPLETE;
}