[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1c8fa321-d91e-c906-a7da-c252a112191b@gmail.com>
Date: Tue, 12 Apr 2022 17:23:57 +0200
From: Michal Orzel <michalorzel.eng@...il.com>
To: Tom Rix <trix@...hat.com>, Jens Axboe <axboe@...nel.dk>,
"Richard Russon (FlatCap)" <ldm@...tcap.org>,
Nathan Chancellor <nathan@...nel.org>,
Nick Desaulniers <ndesaulniers@...gle.com>
Cc: linux-block@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-ntfs-dev@...ts.sourceforge.net, llvm@...ts.linux.dev
Subject: Re: [PATCH] block: Remove redundant assignments
Hi Tom,
On 09.04.2022 18:03, Tom Rix wrote:
>
> On 4/9/22 6:20 AM, Michal Orzel wrote:
>> Hi Tom,
>>
>>> On 4/9/22 3:19 AM, Michal Orzel wrote:
>>>> Get rid of redundant assignments which end up in values not being
>>>> read either because they are overwritten or the function ends.
>>> This log is the same as your last patch.
>>>
>>> Instead of a general statement on deadstores, a more specific
>>>
>>> analysis of the setting being removed would be helpful.
>>>
>>> This will mean splitting the patch to match the analysis.
>>>
>>> Tom
>>>
>> I think that this explanation in a commit is enough for such a trivial patch.
>> It informs that we are fixing clang-tidy findings related to deadstores
>> in a block subsystem. What analysis would you want to see?
>> Something like "Remove deadstore assignment ret = -EINVAL in a function bio_map_user_iov" ?
>> I think that it will create too much of not needed overhead.
>
> The compiler should remove these already. All of the static analyzers produce false positives, if you do not provide analysis the reviewer has to assume you have not done any and has to do the false positive analysis themselves. This burdens the reviewer for something of small value that can be dismissed as churn.
>
> Tom
>
Ok, I will split the patch into series in v2 and I will add some analysis into commit msg.
Cheers,
Michal
Powered by blists - more mailing lists