[PATCHv2 14/17] nvme: fix Clang context analysis warning in rdma.c
Christoph Hellwig
hch at lst.de
Mon Jun 29 05:50:54 PDT 2026
On Fri, Jun 26, 2026 at 09:01:20PM +0530, Nilay Shroff wrote:
>> Does switching to list_empty_careful fix this? If not, does
>> list_empty_careful need annotations to make this work?
>>
>
> I tried using list_empty_careful() but clang still throws the
> same warning. And yes it needs same annotation to suppress
> the warning.
Sounds like we should have annotations (or just use of data_race)
in list_empty_careful, as it is designed to be used without holding
the relevant lock used for modifications?
More information about the Linux-nvme
mailing list