From: Andrew Morton <akpm@zip.com.au>
To: ptb@it.uc3m.es
Cc: linux kernel <linux-kernel@vger.kernel.org>
Subject: Re: scheduling with io_lock held in 2.4.6
Date: Thu, 16 Aug 2001 17:08:26 -0700 [thread overview]
Message-ID: <3B7C607A.58B9E36@zip.com.au> (raw)
In-Reply-To: <200108162345.f7GNjUw02993@oboe.it.uc3m.es>
"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.
>
> There's nothing so impressive as a direct test, so I put a test for
> the spinlock being held at the front of schedule(), and sure enough, it
> fires every 20s or so when I'm doing nothing in particular on the
> machine:
>
> Aug 17 01:36:42 xilofon kernel: Scheduling with io lock held in process 0
>
> doing a dd to /dev/null from the ide disk seems to trigger it, but from
> differnt contexts ...
>
> Aug 17 01:40:58 xilofon kernel: Scheduling with io lock held in process 0
> Aug 17 01:41:00 xilofon last message repeated 150 times
> Aug 17 01:41:00 xilofon kernel: Scheduling with io lock held in process 1139
> 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
> Aug 17 01:41:01 xilofon kernel: Scheduling with io lock held in process 0
>
> Surprise, 1139 and 1141 are klogd and syslogd respectively.
>
> Any suggestions as to how to track this further?
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
you'll need to record which CPU holds the lock.
Or just run the SMP kernel on a single CPU (boot with `nosmp')
and see if it still happens.
next prev parent reply other threads:[~2001-08-17 0:08 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-16 23:45 scheduling with io_lock held in 2.4.6 Peter T. Breuer
2001-08-17 0:08 ` Andrew Morton [this message]
2001-08-18 19:27 ` Peter T. Breuer
[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
-- strict thread matches above, loose matches on Subject: below --
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=3B7C607A.58B9E36@zip.com.au \
--to=akpm@zip.com.au \
--cc=linux-kernel@vger.kernel.org \
--cc=ptb@it.uc3m.es \
/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