From: Liu Bo <bo.li.liu@oracle.com>
To: nick <yocto6@gmail.com>
Cc: linux-btrfs@vger.kernel.org
Subject: Re: Sparse Warnings about locks in extent-tree.c
Date: Tue, 23 Sep 2014 14:45:44 +0800 [thread overview]
Message-ID: <20140923064543.GA3337@localhost.localdomain> (raw)
In-Reply-To: <5420D38F.9060903@gmail.com>
On Mon, Sep 22, 2014 at 09:57:35PM -0400, nick wrote:
> Hello Btfs Developers,
> I am new so am unsure of how to fix this but we are hitting some sparse warnings about unlock/lock is having
> a wrong count when exiting certain functions in extent-tree.c. I will paste the warnings below for you guys.
> Hope this is of help.
> Cheers,
> Nick
> fs/btrfs/extent-tree.c:6386:39: warning: context imbalance in 'btrfs_lock_cluster' - wrong count at exit
> fs/btrfs/extent-tree.c:6663:44: warning: context imbalance in 'find_free_extent' - unexpected unlock
> fs/btrfs/extent-tree.c:8810:9: warning: context imbalance in 'btrfs_put_block_group_cache' - wrong count at exit
Hi Nick,
What program is producing these warning? It looks like a static code analysis
tool or something.
thanks,
-liubo
next prev parent reply other threads:[~2014-09-23 6:45 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-23 1:57 Sparse Warnings about locks in extent-tree.c nick
2014-09-23 6:45 ` Liu Bo [this message]
2014-09-23 14:01 ` David Sterba
2014-09-23 14:07 ` Liu Bo
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=20140923064543.GA3337@localhost.localdomain \
--to=bo.li.liu@oracle.com \
--cc=linux-btrfs@vger.kernel.org \
--cc=yocto6@gmail.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