From: Jan Kara <jack@suse.cz>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Toshiyuki Okajima <toshi.okajima@jp.fujitsu.com>,
linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org,
linux-ext4@vger.kernel.org, Jan Kara <jack@ucw.cz>
Subject: Re: [RFC][PATCH] radix_tree: radix_tree_gang_lookup_tag_slot may not return forever.
Date: Mon, 24 Jan 2011 15:27:39 +0100 [thread overview]
Message-ID: <20110124142739.GA22410@atrey.karlin.mff.cuni.cz> (raw)
In-Reply-To: <20110121153154.1ca74dd2.akpm@linux-foundation.org>
> On Fri, 21 Jan 2011 15:34:31 +0900
> Toshiyuki Okajima <toshi.okajima@jp.fujitsu.com> wrote:
>
> > Hi.
> >
> > I executed fsstress and then found that the system hung up.
> > At that time, I took the crash dump. Here is the backtrace of the process
> > which causes this hangup.
> >
> > [long description]
> >
> > --- a/lib/radix-tree.c
> > +++ b/lib/radix-tree.c
> > @@ -736,10 +736,11 @@ next:
> > }
> > }
> > /*
> > - * The iftag must have been set somewhere because otherwise
> > - * we would return immediated at the beginning of the function
> > + * We need not to tag the root tag if there is no tag which is set with
> > + * settag within the range from *first_indexp to last_index.
> > */
> > - root_tag_set(root, settag);
> > + if (tagged > 0)
> > + root_tag_set(root, settag);
> > *first_indexp = index;
> >
> > return tagged;
>
> Thanks.
>
> It should be fairly simple to reproduce this hang with the userspace
> test harness (http://userweb.kernel.org/~akpm/stuff/rtth.tar.gz) and to
> then demonstrate that the fix fixes it.
>
> If you have time, could you please do that and then send the rtth
> updates to me?
Thanks for CCing me. The patch looks OK so feel free to add
Acked-by: Jan Kara <jack@suse.cz>
But the changelog (~350 lines) was a bit too much for me ;).
Honza
--
Jan Kara <jack@suse.cz>
SuSE CR Labs
next prev parent reply other threads:[~2011-01-24 14:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-21 6:34 [RFC][PATCH] radix_tree: radix_tree_gang_lookup_tag_slot may not return forever Toshiyuki Okajima
2011-01-21 23:31 ` Andrew Morton
2011-01-24 14:27 ` Jan Kara [this message]
2011-01-25 4:53 ` Toshiyuki Okajima
2011-01-25 6:19 ` Andrew Morton
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=20110124142739.GA22410@atrey.karlin.mff.cuni.cz \
--to=jack@suse.cz \
--cc=akpm@linux-foundation.org \
--cc=jack@ucw.cz \
--cc=linux-ext4@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=toshi.okajima@jp.fujitsu.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;
as well as URLs for NNTP newsgroup(s).