From: "Aneesh Kumar K.V" <aneesh.kumar@linux.vnet.ibm.com>
To: Dan Carpenter <error27@gmail.com>
Cc: tytso@mit.edu, adilger@sun.com, linux-ext4@vger.kernel.org
Subject: Re: locking typo in ext4_mb_add_n_trim()
Date: Fri, 27 Mar 2009 22:05:17 +0530 [thread overview]
Message-ID: <20090327163517.GA2810@skywalker> (raw)
In-Reply-To: <Pine.LNX.4.64.0903262204430.4167@usbsys.site>
On Fri, Mar 27, 2009 at 01:27:04PM +0300, Dan Carpenter wrote:
> Smatch (http://repo.or.cz/w/smatch.git/) complains about the locking in
> ext4_mb_add_n_trim() from fs/ext4/mballoc.c
>
> I think it's meant to be spin_unlock(&tmp_pa->pa_lock); on line 4442.
>
> 4438 list_for_each_entry_rcu(tmp_pa, &lg->lg_prealloc_list[order],
> 4439 pa_inode_list) {
> 4440 spin_lock(&tmp_pa->pa_lock);
> 4441 if (tmp_pa->pa_deleted) {
> 4442 spin_unlock(&pa->pa_lock);
> 4443 continue;
> 4444 }
>
> I can send a patch if I'm right or you could just give me a:
> Reported-by: Dan Carpenter <error27@gmail.com>
>
Good catch. Can you send a proper patch with signed-off-by. You can add
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@gmail.com>
-aneesh
next prev parent reply other threads:[~2009-03-27 16:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-27 10:27 locking typo in ext4_mb_add_n_trim() Dan Carpenter
2009-03-27 14:16 ` Eric Sandeen
2009-03-27 23:36 ` Theodore Tso
2009-03-31 13:00 ` Jan Kara
2009-03-27 16:35 ` Aneesh Kumar K.V [this message]
2009-03-27 23:20 ` Theodore Tso
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=20090327163517.GA2810@skywalker \
--to=aneesh.kumar@linux.vnet.ibm.com \
--cc=adilger@sun.com \
--cc=error27@gmail.com \
--cc=linux-ext4@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.