From: Fengguang Wu <fengguang.wu@intel.com>
To: Ted Ts'o <tytso@mit.edu>, Jan Kara <jack@suse.cz>,
linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org
Subject: Re: writeback: bad unlock balance detected in 3.5-rc1
Date: Sat, 9 Jun 2012 08:37:28 +0900 [thread overview]
Message-ID: <20120608233728.GA7691@localhost> (raw)
In-Reply-To: <20120608202840.GB1704@thunk.org>
On Fri, Jun 08, 2012 at 04:28:40PM -0400, Theodore Ts'o wrote:
> On Fri, Jun 08, 2012 at 05:07:36PM +0200, Jan Kara wrote:
> > Argh, I wonder how come I didn't hit this. Does attached patch fix the
> > problem?
>
> Just to confirm (although there was little doubt), I've built a kernel
> with this patch and it fixes the lockdep complaint.
Great, thank you!
Here is the updated changelog:
writeback: Fix lock imbalance in writeback_sb_inodes()
Fix bug introduced by 169ebd90. We have to have wb_list_lock locked when
restarting writeback loop after having waited for inode writeback.
Bug description by Ted Tso:
I can reproduce this fairly easily by using ext4 w/o a journal, running
under KVM with 1024megs memory, with fsstress (xfstests #13):
[ 45.153294] =====================================
[ 45.154784] [ BUG: bad unlock balance detected! ]
[ 45.155591] 3.5.0-rc1-00002-gb22b1f1 #124 Not tainted
[ 45.155591] -------------------------------------
[ 45.155591] flush-254:16/2499 is trying to release lock (&(&wb->list_lock)->rlock) at:
[ 45.155591] [<c022c3da>] writeback_sb_inodes+0x160/0x327
[ 45.155591] but there are no more locks to release!
Reported-by: Theodore Ts'o <tytso@mit.edu>
Tested-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Jan Kara <jack@suse.cz>
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Thanks,
Fengguang
next prev parent reply other threads:[~2012-06-08 23:37 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-08 14:36 writeback: bad unlock balance detected in 3.5-rc1 Theodore Ts'o
2012-06-08 15:07 ` Jan Kara
2012-06-08 15:45 ` Fengguang Wu
2012-06-08 15:51 ` Sedat Dilek
2012-06-08 16:00 ` Fengguang Wu
2012-06-08 20:50 ` Jan Kara
2012-06-11 11:21 ` Artem Bityutskiy
2012-06-11 11:21 ` Fengguang Wu
2012-06-08 20:28 ` Ted Ts'o
2012-06-08 23:37 ` Fengguang Wu [this message]
2012-06-09 2:38 ` Ted Ts'o
2012-06-09 11:07 ` Fengguang Wu
2012-06-09 11:17 ` Ted Ts'o
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=20120608233728.GA7691@localhost \
--to=fengguang.wu@intel.com \
--cc=jack@suse.cz \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=tytso@mit.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).