From: James Bottomley <James.Bottomley@HansenPartnership.com>
To: Josh Boyer <jwboyer@fedoraproject.org>
Cc: dgilbert@interlog.com, Simon Kirby <sim@hostway.ca>,
"Linux-Kernel@Vger. Kernel. Org" <linux-kernel@vger.kernel.org>,
"linux-scsi@vger.kernel.org" <linux-scsi@vger.kernel.org>,
Vaughan Cao <vaughan.cao@oracle.com>
Subject: Re: [3.12-rc] sg_open: leaving the kernel with locks still held!
Date: Wed, 23 Oct 2013 13:22:37 +0100 [thread overview]
Message-ID: <1382530957.16097.30.camel@dabdike.quadriga.com> (raw)
In-Reply-To: <CA+5PVA6+6jZyypZODiuY4NWY3V2CsJeurFTuy4Wt-KcPddzaSQ@mail.gmail.com>
On Wed, 2013-10-23 at 05:11 -0700, Josh Boyer wrote:
> On Wed, Oct 23, 2013 at 12:44 AM, James Bottomley
> <James.Bottomley@hansenpartnership.com> wrote:
> > On Tue, 2013-10-22 at 20:41 -0400, Douglas Gilbert wrote:
> >> On 13-10-22 04:56 PM, Simon Kirby wrote:
> >> > Hello!
> >> >
> >> > While trying to figure out why the request queue to sda (ext4) was
> >> > clogging up on one of our btrfs backup boxes, I noticed a megarc process
> >> > in D state, so enabled locking debugging, and got this (on 3.12-rc6):
> >> >
> >> > [ 205.372823] ================================================
> >> > [ 205.372901] [ BUG: lock held when returning to user space! ]
> >> > [ 205.372979] 3.12.0-rc6-hw-debug-pagealloc+ #67 Not tainted
> >> > [ 205.373055] ------------------------------------------------
> >> > [ 205.373132] megarc.bin/5283 is leaving the kernel with locks still held!
> >> > [ 205.373212] 1 lock held by megarc.bin/5283:
> >> > [ 205.373285] #0: (&sdp->o_sem){.+.+..}, at: [<ffffffff8161e650>] sg_open+0x3a0/0x4d0
> >> >
> >> > Vaughan, it seems you touched this area last in 15b06f9a02406e, and git
> >> > tag --contains says this went in for 3.12-rc. We didn't see this on 3.11,
> >> > though I haven't tried with lockdep.
> >> >
> >> > This is caused by some of our internal RAID monitoring scripts that run
> >> > "megarc.bin -dispCfg -a0" (even though that controller isn't present on
> >> > this server -- a PowerEdge 2950 w/Perc 5).
> >> >
> >> > strace output of the program execution that causes the above message is
> >> > here: http://0x.ca/sim/ref/3.12-rc6/megarc_strace.txt
> >>
> >> This has been reported. That patch will be reverted or,
> >> if there is enough time, a fix will (or at least should)
> >> go in before the release of lk 3.12 .
> >
> > I think you've got about a week to prove you can fix it (before 3.12
> > goes final). I'll send my current set of fixes to Linus without doing
> > anything about sg.
>
> In the event that a suitable fix isn't found, are you going to revert
> the commit(s) that caused the issue?
That's what I said I'd do previously, yes.
James
next prev parent reply other threads:[~2013-10-23 12:22 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-10-22 20:56 Simon Kirby
2013-10-23 0:41 ` Douglas Gilbert
2013-10-23 7:44 ` James Bottomley
2013-10-23 12:11 ` Josh Boyer
2013-10-23 12:22 ` James Bottomley [this message]
2013-10-23 14:10 ` Douglas Gilbert
2013-10-25 0:37 ` Simon Kirby
2013-10-25 7:20 ` James Bottomley
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=1382530957.16097.30.camel@dabdike.quadriga.com \
--to=james.bottomley@hansenpartnership.com \
--cc=dgilbert@interlog.com \
--cc=jwboyer@fedoraproject.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-scsi@vger.kernel.org \
--cc=sim@hostway.ca \
--cc=vaughan.cao@oracle.com \
/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
Powered by JetHome