[PATCH 12/15] nvme: add Clang context annotations for nvme_queue::cq_poll_lock
Nilay Shroff
nilay at linux.ibm.com
Wed Jun 10 21:54:32 PDT 2026
On 6/10/26 10:16 PM, Keith Busch wrote:
> On Wed, Jun 10, 2026 at 07:57:32PM +0530, Nilay Shroff wrote:
>> Fix the warning by acquiring nvme_queue::cq_poll_lock before invoking
>> nvme_cqe_pending() in nvme_poll().
>
> The check outside the lock was done on purpose, though.
Oh okay, I didn't know that. In that case we could skip
the locking around nvme_cqe_pending() and silence the
compiler warning using context_unsafe().
Thanks,
--Nilay
More information about the Linux-nvme
mailing list