Name

ata_scsi_timed_out — SCSI layer time out callback

Synopsis

enum scsi_eh_timer_return ata_scsi_timed_out (struct scsi_cmnd * cmd);

Arguments

cmd

timed out SCSI command

Description

Handles SCSI layer timeout. We race with normal completion of the qc for cmd. If the qc is already gone, we lose and let the scsi command finish (EH_HANDLED). Otherwise, the qc has timed out and EH should be invoked. Prevent ata_qc_complete from finishing it by setting EH_SCHEDULED and return EH_NOT_HANDLED.

LOCKING

Called from timer context

RETURNS

EH_HANDLED or EH_NOT_HANDLED