mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Nilay Shroff <nilay@linux.ibm.com>
To: Marco Elver <elver@google.com>
Cc: Christoph Hellwig <hch@lst.de>,
	linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org,
	kbusch@kernel.org, sagi@grimberg.me, axboe@fb.com,
	bvanassche@acm.org, gjoyce@linux.ibm.com
Subject: Re: [PATCH v3 14/18] list: Permit context-unguarded access with list_empty_careful()
Date: Mon, 13 Jul 2026 10:47:16 +0530	[thread overview]
Message-ID: <78b030be-878f-4c71-8288-66fc19d71512@linux.ibm.com> (raw)
In-Reply-To: <CANpmjNMckikjJUdTT=ugs4pHMTOOQ+9mvSWZG31BGU3EFvRU1g@mail.gmail.com>

On 7/12/26 3:29 AM, Marco Elver wrote:
> On Fri, 10 Jul 2026 at 10:10, Nilay Shroff <nilay@linux.ibm.com> wrote:
>>
>> Hi Marco,
>>
>> On 7/9/26 12:00 PM, Christoph Hellwig wrote:
>>> On Mon, Jul 06, 2026 at 07:44:16PM +0530, Nilay Shroff wrote:
>>>> From: Marco Elver <elver@google.com>
>>>>
>>>> With Context Analysis (viz. Clang's Thread Safety Analysis), list_heads
>>>> that are __guarded_by(..) require holding the appropriate context lock
>>>> when accessing and manipulating them via the list API. Because Clang's
>>>> warning diagnostics do not perform inter-procedural analysis, this is
>>>> enforced by Clang with -Wthread-safety-pointer in the caller at the call
>>>> boundary; a warning is produced when passing a pointer to a guarded
>>>> variable without holding the appropriate context locks:
>>>
>>> Same thing here, maybe try to get this to Linus late in the current
>>> window as it's trivial and makes dependency management much easier.
> 
> It's not a bug fix, more of a feature, so I don't think this should be
> sent in a post-rc1 PR (and Linus would likely reject it).
> 
>>> If that doesn't work, move it to the front of the series.
>>>
>> Would it be possible for you to send a pull request for Linus directly, or
>> would it need to go through another maintainer?
> 
> Needs another maintainer.
> 
>> If you're able to send it directly, we also have patch 09/18 in this
>> series that should go to Linus. In that case, I'd suggest including both
>> patches in the same pull request.
> 
> list has no de-facto maintainer, so anyone could take it. My guess is
> it could go through tip/locking/core since it's related to Context
> Analysis...
> 
> ... alas, this is more complex than it needs to be, esp. given it's
> borderline to get this merged post-rc1.
> 
>> Otherwise, as Christoph suggested, I'll move these patches to the
>> beginning of the series in the next revision.
> 
> I'd just move it to the beginning on the respin, given what I said above.
> 
Okay so then I'd move it at the beginning while I spin next revision.

Thanks,
--Nilay

  reply	other threads:[~2026-07-13  5:17 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-06 14:14 [PATCH v3 00/18] Support Clang context analysis for NVMe host drivers Nilay Shroff
2026-07-06 14:14 ` [PATCH v3 01/18] nvme: update nvme_passthru_end() signature Nilay Shroff
2026-07-06 14:14 ` [PATCH v3 02/18] nvme: add context annotations for nvme_passthru_{start|stop} Nilay Shroff
2026-07-06 14:14 ` [PATCH v3 03/18] nvme: add context annotations for nvme_ns_head::srcu Nilay Shroff
2026-07-06 14:14 ` [PATCH v3 04/18] nvme: add context annotations for nvme_ns_head::requeue_list Nilay Shroff
2026-07-06 14:14 ` [PATCH v3 05/18] nvme: add context annotations for nvme_ns_head::current_path Nilay Shroff
2026-07-06 16:08   ` Paul E. McKenney
2026-07-06 14:14 ` [PATCH v3 06/18] nvme: add context annotations for nvme_dev::shutdown_lock Nilay Shroff
2026-07-06 14:14 ` [PATCH v3 07/18] nvme: add context annotations for nvme_subsystem::lock Nilay Shroff
2026-07-09  6:28   ` Christoph Hellwig
2026-07-10  8:18     ` Nilay Shroff
2026-07-06 14:14 ` [PATCH v3 08/18] nvme: add context annotations for nvme_ctrl::ana_lock Nilay Shroff
2026-07-06 14:14 ` [PATCH v3 09/18] list: introduce LIST_HEAD_GUARDED Nilay Shroff
2026-07-09  6:29   ` Christoph Hellwig
2026-07-06 14:14 ` [PATCH v3 10/18] nvme: add context annotations for nvme_subsystems_lock Nilay Shroff
2026-07-09  6:31   ` Christoph Hellwig
2026-07-06 14:14 ` [PATCH v3 11/18] nvme: add context annotations in fabric.c Nilay Shroff
2026-07-09  6:31   ` Christoph Hellwig
2026-07-06 14:14 ` [PATCH v3 12/18] nvme: add context annotations for nvme_queue::sq_lock Nilay Shroff
2026-07-09  6:32   ` Christoph Hellwig
2026-07-10  8:03     ` Nilay Shroff
2026-07-06 14:14 ` [PATCH v3 13/18] nvme: add context annotations in rdma.c Nilay Shroff
2026-07-06 14:14 ` [PATCH v3 14/18] list: Permit context-unguarded access with list_empty_careful() Nilay Shroff
2026-07-09  6:30   ` Christoph Hellwig
2026-07-10  8:09     ` Nilay Shroff
2026-07-11 21:59       ` Marco Elver
2026-07-13  5:17         ` Nilay Shroff [this message]
2026-07-06 14:14 ` [PATCH v3 15/18] nvme: fix context analysis warning in rdma.c Nilay Shroff
2026-07-06 14:14 ` [PATCH v3 16/18] nvme: add context annotations in tcp.c Nilay Shroff
2026-07-06 14:14 ` [PATCH v3 17/18] nvme: fix context analysis warning " Nilay Shroff
2026-07-06 14:14 ` [PATCH v3 18/18] nvme: enable context analysis support for nvme host driver Nilay Shroff

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=78b030be-878f-4c71-8288-66fc19d71512@linux.ibm.com \
    --to=nilay@linux.ibm.com \
    --cc=axboe@fb.com \
    --cc=bvanassche@acm.org \
    --cc=elver@google.com \
    --cc=gjoyce@linux.ibm.com \
    --cc=hch@lst.de \
    --cc=kbusch@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-nvme@lists.infradead.org \
    --cc=sagi@grimberg.me \
    /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

Powered by JetHome