Re: [Re: Linux 2.6.28-rc1] scsi 4:0:0:0: timing out command, waited 22s

From: Maciej Rutecki
Date: Fri Oct 24 2008 - 14:43:52 EST


Thanks for quick response. I added patch, and DVD works OK.

Tested-by: Maciej Rutecki <maciej.rutecki@xxxxxxxxx>

> diff --git a/drivers/ata/libata-scsi.c b/drivers/ata/libata-scsi.c
> index d5b9b72..4b95c43 100644
> --- a/drivers/ata/libata-scsi.c
> +++ b/drivers/ata/libata-scsi.c
> @@ -708,7 +708,11 @@ static struct ata_queued_cmd *ata_scsi_qc_new(struct ata_device *dev,
> {
> struct ata_queued_cmd *qc;
>
> - qc = ata_qc_new_init(dev, cmd->request->tag);
> + if (cmd->request->tag != -1)
> + qc = ata_qc_new_init(dev, cmd->request->tag);
> + else
> + qc = ata_qc_new_init(dev, 0);
> +
> if (qc) {
> qc->scsicmd = cmd;
> qc->scsidone = done;
>
>
>


Regards
--
Maciej Rutecki
http://www.maciek.unixy.pl
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/