From: "Peter T. Breuer" <ptb@it.uc3m.es>
To: Andrew Morton <akpm@zip.com.au>
Cc: ptb@it.uc3m.es, linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: scheduling with io_lock held in 2.4.6
Date: Sat, 18 Aug 2001 21:27:09 +0200 (CEST) [thread overview]
Message-ID: <200108181927.VAA03583@nbd.it.uc3m.es> (raw)
In-Reply-To: <3B7C607A.58B9E36@zip.com.au> "from Andrew Morton at Aug 16, 2001 05:08:26 pm"
"A month of sundays ago Andrew Morton wrote:"
> "Peter T. Breuer" wrote:
> > I've been plagued for a month by smp lockups in my block driver
> > that I eventually deduced were due to somebody else scheduling while
> > holding the io_request_lock spinlock.
> > Aug 17 01:41:00 xilofon kernel: Scheduling with io lock held in process 0
> > Aug 17 01:41:01 xilofon last message repeated 87 times
> > Aug 17 01:41:01 xilofon kernel: Scheduling with io lock held in process 1141
> Replace the printk with a BUG(), feed the result into ksymooops.
> Or use show_trace(0).
>
> But if you're running SMP, scheduling with a lock held
> is quite legal - it'll be held by another CPU. In that case
Err, yes, I had initially made that mistake, but was fortunately running
on a single cpu machine. I fixed the test to check that the spinlock
was taken on the same cpu as we are now scheduling on and the test still
triggers.
> you'll need to record which CPU holds the lock.
My initial conclusion, based on recording file and line numbers every
time the spinlock is taken, is that end_that_request_last from ll_rw_blk.c
sometimes schedules under the io_request_lock.
I am still investigating, in the hope of pinning it down more exactly. If
anyone recognizes what goes on, please tell me.
Peter
next prev parent reply other threads:[~2001-08-18 19:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-16 23:45 Peter T. Breuer
2001-08-17 0:08 ` Andrew Morton
2001-08-18 19:27 ` Peter T. Breuer [this message]
[not found] <3B7EC41C.9811D384@zip.com.au>
2001-08-18 21:57 ` Peter T. Breuer
2001-08-18 22:13 ` Andrew Morton
2001-08-19 1:21 ` Peter T. Breuer
2001-08-19 16:38 ` Peter T. Breuer
2001-08-19 18:58 Peter T. Breuer
2001-08-19 22:47 ` Andrew Morton
2001-08-19 20:42 Manfred Spraul
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=200108181927.VAA03583@nbd.it.uc3m.es \
--to=ptb@it.uc3m.es \
--cc=akpm@zip.com.au \
--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
all inboxes | Powered by JetHome®