From: Jan Dittmer <jdittmer@ppp0.net>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Mike Anderson <andmike@us.ibm.com>,
James Bottomley <James.Bottomley@SteelEye.com>,
Pavel Machek <pavel@suse.cz>, Greg KH <greg@kroah.com>,
SCSI development list <linux-scsi@vger.kernel.org>
Subject: Re: [linux-usb-devel] Re: 2.6.14-rc1 load average calculation broken?
Date: Sat, 17 Sep 2005 00:14:11 +0200 [thread overview]
Message-ID: <432B43B3.2080801@ppp0.net> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0509161702480.5838-100000@iolanthe.rowland.org>
Alan Stern wrote:
> On Fri, 16 Sep 2005, Mike Anderson wrote:
>
>
>>>This makes me suspect that the condition about host_busy == host_failed is
>>>wrong. Unfortunately I don't know why it's wrong or how to fix it.
>>>
>>>Perhaps somebody on the SCSI list can provide the answer.
>>>
>>
>>What condition are you thinking would happen if this was wrong (we are
>>getting woken up too early?)?
>
>
> Yes, that is what would happen. Or failing to go back to sleep when we
> should, which might be even worse.
>
>
>> I did a quick look and could not see changes
>>between 2.6.13 and 2.16.14-rc1 that would make these values wrong. This is
>>just a check to ensure the eh is not woken up to early. Historically in
>>older scsi eh code there used to be a panic if the error handler was woken
>>up to early. In scsi_unjam_host and a quick look at ata_scsi_error getting
>>woken up early should not cause a panic.
>>
>>I built a listfile (libata-scsi.lst) and it is probably not an exact
>>match. ..but..
>>
>>These lines in ata_scsi_error(..) appear to be close to the failure and
>>edx being zero as shown above in the oops would not be good.
>> ap->ops->eng_timeout(ap);
>> 499: 8b 50 04 mov 0x4(%eax),%edx
>> 49c: ff 52 48 call *0x48(%edx)
>>
>>Since I do not know the libata code it is unclear from doing a short
>>search how an ops pointer could get altered or if my observations are
>>correct.
>
>
> Maybe the wakeup occurred before ap->ops was set correctly, or after it
> was unset. Jan, at what point did the oops happen? Was it right after
> the device was detected, during removal, or some other time?
>
> Can you put in some debugging printk's to see what values are in ap,
> ap->ops, and ap->ops->eng_timeout?
ap->ops is 0, on dereferencing I get a backtrace. ap has a valid pointer
(-573296044 whatever that maps to).
Jan
--
Jan
next prev parent reply other threads:[~2005-09-16 22:14 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-15 11:42 2.6.14-rc1 load average calculation broken? Jan Dittmer
2005-09-15 12:40 ` Jan Dittmer
2005-09-15 16:38 ` Jan Knutar
2005-09-15 18:37 ` Jan Dittmer
2005-09-15 19:53 ` Pavel Machek
2005-09-16 10:46 ` Jan Dittmer
2005-09-16 15:10 ` [linux-usb-devel] " Alan Stern
2005-09-16 15:41 ` Jan Dittmer
2005-09-16 16:15 ` Alan Stern
2005-09-16 17:40 ` Jan Dittmer
2005-09-16 17:57 ` Alan Stern
2005-09-16 20:28 ` Mike Anderson
2005-09-16 21:09 ` Alan Stern
2005-09-16 21:56 ` Jan Dittmer
2005-09-16 22:14 ` Jan Dittmer [this message]
2005-09-17 4:23 ` Alan Stern
2005-09-19 3:58 ` Mike Anderson
2005-09-19 14:24 ` Alan Stern
2005-09-19 18:56 ` Bill Davidsen
2005-09-19 20:38 ` Alan Stern
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=432B43B3.2080801@ppp0.net \
--to=jdittmer@ppp0.net \
--cc=James.Bottomley@SteelEye.com \
--cc=andmike@us.ibm.com \
--cc=greg@kroah.com \
--cc=linux-scsi@vger.kernel.org \
--cc=pavel@suse.cz \
--cc=stern@rowland.harvard.edu \
/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.