From: Jens Axboe <axboe@suse.de>
To: Jeff Garzik <jgarzik@pobox.com>
Cc: torvalds@osdl.org, joshk@triplehelix.org,
linux-kernel@vger.kernel.org, linux-ide@vger.kernel.org,
linux-scsi@vger.kernel.org
Subject: Re: [PATCH] updated version of Jens' SATA suspend-to-ram patch
Date: Sat, 24 Sep 2005 09:07:04 +0200 [thread overview]
Message-ID: <20050924070659.GK22655@suse.de> (raw)
In-Reply-To: <433469DF.1060900@pobox.com>
On Fri, Sep 23 2005, Jeff Garzik wrote:
> >--- linux-2.6.13/drivers/scsi/libata-core.c~ 2005-09-01
> >12:22:19.000000000 +0200
> >+++ linux-2.6.13/drivers/scsi/libata-core.c 2005-09-01
> >12:24:38.000000000 +0200
> >@@ -3738,8 +3738,8 @@
> > unsigned long flags;
> > int rc;
> >
> >- qc = ata_qc_new_init(ap, dev);
> >- BUG_ON(qc == NULL);
> >+ while ((qc = ata_qc_new_init(ap, dev)) == NULL)
> >+ msleep(10);
> >
> > qc->tf.command = cmd;
> > qc->tf.flags |= ATA_TFLAG_DEVICE;
>
> Worried now!
>
> If this patch is needed, something VERY VERY WRONG is going on. This
> patch indicates that the queueing state machine has been violated, and
> something is trying to IGNORE the command synchronization :(
I haven't diagnosed this further and it only ever happened in the SUSE
kernel to my knowledge (no one has reported it to me for the vanilla
kernels + suspend patch).
So lets just keep this patch out of the equation for now, it could be
that other SUSE patches broke something in this area :/
> Further, you cannot always assume that msleep() is valid in that
> context. It should be the caller that waits (libata suspend code), not
> ata_do_simple_cmd() itself.
ata_do_simple_cmd() always blocks anyways, so I don't see the point.
Perhaps rename the function to ata_execute_and_wait_simple_cmd().
--
Jens Axboe
next prev parent reply other threads:[~2005-09-24 7:07 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-23 16:33 [PATCH] updated version of Jens' SATA suspend-to-ram patch Joshua Kwan
2005-09-23 18:07 ` Jens Axboe
2005-09-23 20:23 ` Linus Torvalds
2005-09-23 20:47 ` Jeff Garzik
2005-09-23 21:11 ` Mark Lord
2005-09-23 21:21 ` Joshua Kwan
2005-09-24 7:07 ` Jens Axboe [this message]
2005-09-29 5:21 ` SATA suspend/resume (was Re: [PATCH] updated version of Jens' SATA suspend-to-ram patch) Jeff Garzik
2005-09-29 7:34 ` Christoph Hellwig
2005-09-29 8:11 ` Christoph Hellwig
2005-09-29 20:13 ` Randy.Dunlap
2005-09-29 21:48 ` Randy.Dunlap
2005-10-01 18:24 ` Mark Lord
2005-10-01 18:39 ` Randy.Dunlap
-- strict thread matches above, loose matches on Subject: below --
2005-09-24 4:28 [PATCH] updated version of Jens' SATA suspend-to-ram patch Philip Langdale
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=20050924070659.GK22655@suse.de \
--to=axboe@suse.de \
--cc=jgarzik@pobox.com \
--cc=joshk@triplehelix.org \
--cc=linux-ide@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=torvalds@osdl.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.