mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "Maciej Rutecki" <maciej.rutecki@gmail.com>
To: "James Bottomley" <James.Bottomley@hansenpartnership.com>
Cc: "Linus Torvalds" <torvalds@linux-foundation.org>,
	"Linux Kernel Mailing List" <linux-kernel@vger.kernel.org>,
	linux-ide@vger.kernel.org,
	"SCSI development list" <linux-scsi@vger.kernel.org>
Subject: Re: [Re: Linux 2.6.28-rc1] scsi 4:0:0:0: timing out command, waited 22s
Date: Fri, 24 Oct 2008 20:43:37 +0200	[thread overview]
Message-ID: <8db1092f0810241143l1e5c3ea8g2587a2db452c3b9e@mail.gmail.com> (raw)
In-Reply-To: <1224871587.3307.19.camel@localhost.localdomain>

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

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

> 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

  reply	other threads:[~2008-10-24 18:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-24 17:57 Maciej Rutecki
2008-10-24 18:04 ` Linus Torvalds
2008-10-24 18:05 ` Rafael J. Wysocki
2008-10-24 18:06 ` James Bottomley
2008-10-24 18:43   ` Maciej Rutecki [this message]
2008-10-24 19:20 ` Alan Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8db1092f0810241143l1e5c3ea8g2587a2db452c3b9e@mail.gmail.com \
    --to=maciej.rutecki@gmail.com \
    --cc=James.Bottomley@hansenpartnership.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-scsi@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®