From: Mike Anderson <andmike@us.ibm.com>
To: Alan Stern <stern@rowland.harvard.edu>
Cc: Jan Dittmer <jdittmer@ppp0.net>,
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: Sun, 18 Sep 2005 20:58:04 -0700 [thread overview]
Message-ID: <20050919035804.GA5260@us.ibm.com> (raw)
In-Reply-To: <Pine.LNX.4.44L0.0509170014070.4420-100000@netrider.rowland.org>
Alan Stern <stern@rowland.harvard.edu> wrote:
> On Sat, 17 Sep 2005, Jan Dittmer wrote:
>
> > > 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).
>
> Hmm... I imagine that when the error handler is first starting up,
> ->host_busy is equal to ->host_failed because both are 0. So that really
> is not the appropriate condition to wait for. A better approach would be
> to have an atomic_t variable recording the number of pending invocations.
>
> On the whole, I wonder if using kthread_stop here is such a good idea.
> The old mechanism for stopping worked well...
>
Since scsi_eh_wakeup can only be called on a completion or timeout of an IO
you cannot get a comparison when both are 0 (unless we have a bug
somewhere).
If the increment of host_failed, increment of host_busy, decrement of
host_busy, and the comparison of host_busy to host_failed is all under
the host_lock why would the atomic_t be better.
-andmike
--
Michael Anderson
andmike@us.ibm.com
next prev parent reply other threads:[~2005-09-19 3:58 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
2005-09-17 4:23 ` Alan Stern
2005-09-19 3:58 ` Mike Anderson [this message]
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=20050919035804.GA5260@us.ibm.com \
--to=andmike@us.ibm.com \
--cc=James.Bottomley@SteelEye.com \
--cc=greg@kroah.com \
--cc=jdittmer@ppp0.net \
--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.