Re: [PATCHv2 14/17] nvme: fix Clang context analysis warning in rdma.c

From: Christoph Hellwig

Date: Mon Jun 29 2026 - 09:03:43 EST


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?