ata_scsi_badcmd9
End a scsi request with an error
Usage
void ata_scsi_badcmd(struct scsi_cmnd * cmd, void (*done) (struct scsi_cmnd *), u8 asc, u8 ascq);
Arguments
cmd
SCSI request to be handled
done
SCSI command completion function
asc
SCSI-defined additional sense code
ascq
SCSI-defined additional sense code qualifier
Overview
Helper function that completes a SCSI command with SAM_STAT_CHECK_CONDITION, with a sense key ILLEGAL_REQUEST and the specified additional sense codes.
Locking
spin_lock_irqsave(host_set lock)