linux-ide.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jens Axboe <axboe@suse.de>
To: Grant Coady <grant_lkml@dodo.com.au>
Cc: linux-ide@vger.kernel.org, linux-kernel@vger.kernel.org,
	jgarzik@pobox.com
Subject: Re: [PATCH] SATA NCQ #4
Date: Thu, 9 Jun 2005 08:23:39 +0200	[thread overview]
Message-ID: <20050609062338.GC5140@suse.de> (raw)
In-Reply-To: <tbgea15ls0a5kovgnsr62fkhtgnspmjfeg@4ax.com>

On Thu, Jun 09 2005, Grant Coady wrote:
> On Wed, 8 Jun 2005 13:45:26 +0200, Jens Axboe <axboe@suse.de> wrote:
> >
> >Any chance you can log the boot process when it fails, using serial
> >console or something similar? At least write down the EIP of where it
> >fails :-)
> 
> Guess what?  I switched box on this morning with monitor off and 
> the boot completed, 'cos I'd logged in much time later ssh.  Didn't 
> give it enough time yesterday :(
> 
> I have one very large syslog... 139MB
> 
> How much of that would you like :)
> 
> Jun  9 04:27:45 sempro kernel:  [<c0100ad3>] default_idle+0x23/0x30
> Jun  9 04:27:45 sempro kernel:  [<c0100b58>] cpu_idle+0x48/0x60
> Jun  9 04:27:45 sempro kernel:  [<c04867b8>] start_kernel+0x148/0x170
> Jun  9 04:27:45 sempro kernel:  [<c04863a0>] unknown_bootoption+0x0/0x1b0
> Jun  9 04:27:45 sempro kernel: Badness in __ata_qc_complete at drivers/scsi/libata-core.c:3062

Ah duh, I never tested on UP, you have to use assert_spin_locked() there
not the direct spin_is_locked().

So your system was functioning just fine, you just got a warning for
every completed request slowing it down a lot :)

This should fix it. Jeff, can you apply that incremental to the ncq
branch? Thanks!

--- linux-2.6/drivers/scsi/libata-core.c~	2005-06-09 08:20:34.000000000 +0200
+++ linux-2.6/drivers/scsi/libata-core.c	2005-06-09 08:22:24.000000000 +0200
@@ -3059,7 +3059,7 @@
 	struct ata_port *ap = qc->ap;
 	unsigned int tag, do_clear = 0;
 
-	WARN_ON(!spin_is_locked(&ap->host_set->lock));
+	WARN_ON(!assert_spin_locked(&ap->host_set->lock));
 
 	if (likely(qc->flags & ATA_QCFLAG_ACTIVE)) {
 		assert(ap->queue_depth);

-- 
Jens Axboe


  reply	other threads:[~2005-06-09  6:22 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-08 10:28 [PATCH] SATA NCQ #4 Jens Axboe
2005-06-08 11:36 ` Grant Coady
2005-06-08 11:41   ` Jens Axboe
2005-06-08 11:45     ` Jens Axboe
2005-06-08 19:36       ` Grant Coady
2005-06-09  6:23         ` Jens Axboe [this message]
2005-06-09  6:40           ` Jens Axboe
2005-06-09  6:43             ` Jeff Garzik
2005-06-09  6:55               ` Jeff Garzik
2005-06-09  7:20                 ` Jens Axboe
2005-06-09  7:47           ` Grant Coady

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=20050609062338.GC5140@suse.de \
    --to=axboe@suse.de \
    --cc=grant_lkml@dodo.com.au \
    --cc=jgarzik@pobox.com \
    --cc=linux-ide@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.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;
as well as URLs for NNTP newsgroup(s).