From: Dan Carpenter <dan.carpenter@linaro.org>
To: Matthew Sakai <msakai@redhat.com>
Cc: Philip Li <philip.li@intel.com>,
oe-kbuild@lists.linux.dev, Mike Snitzer <snitzer@kernel.org>,
lkp@intel.com, oe-kbuild-all@lists.linux.dev,
linux-kernel@vger.kernel.org
Subject: Re: drivers/md/dm-vdo/data-vio.c:976 vdo_launch_bio() warn: inconsistent returns '&pool->lock'.
Date: Tue, 29 Oct 2024 22:49:27 +0300 [thread overview]
Message-ID: <a048daa6-ab57-4d06-a7d6-df119e2845c0@stanley.mountain> (raw)
In-Reply-To: <1c0beb9b-6b90-4c92-a4f3-f228dc0aa527@redhat.com>
On Tue, Oct 29, 2024 at 01:03:35PM -0400, Matthew Sakai wrote:
> Okay. Just to restate, what I took away from this thread is
> 1) The current code provokes a warning.
> 2) When bisecting, the bot found a (different) warning from the patch
> introducing this code, and so the mail points out that warning instead of
> the warning in newer code.
Not a different warning. It's same warning. It's just that the code in the
original commit was buggy and Smatch kept on warning about it even when it was
fixed.
> 3) The warning is showing up now because new checking allows the bot to
> notice problems it didn't notice before.
>
> The commit I cited fixed warning from sparse, but I don't think we looked at
> smatch. This particular code does not have a locking problem, but the way
> it's spelled makes it difficult for static tools to understand that there is
> not a problem. I'll take a look and see if there's anything further I can do
> address the actual current warning.
Don't invest a lot of time into this. I'm re-working the locking check really
heavily right now. I know how to silence this warning when the cross function
DB is enabled. It's just that I'm trying to decide the best way to do it.
regards,
dan carpenter
next prev parent reply other threads:[~2024-10-29 19:49 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-21 7:19 Dan Carpenter
2024-10-28 23:00 ` Matthew Sakai
2024-10-29 3:03 ` Philip Li
2024-10-29 7:15 ` Philip Li
2024-10-29 8:07 ` Dan Carpenter
2024-10-29 8:12 ` Dan Carpenter
2024-10-29 8:19 ` Dan Carpenter
2024-10-29 17:03 ` Matthew Sakai
2024-10-29 19:49 ` Dan Carpenter [this message]
2024-10-29 7:38 ` Dan Carpenter
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=a048daa6-ab57-4d06-a7d6-df119e2845c0@stanley.mountain \
--to=dan.carpenter@linaro.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lkp@intel.com \
--cc=msakai@redhat.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=oe-kbuild@lists.linux.dev \
--cc=philip.li@intel.com \
--cc=snitzer@kernel.org \
/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
all inboxes | Powered by JetHome®