Re: [PATCH v3 12/18] nvme: add context annotations for nvme_queue::sq_lock

From: Nilay Shroff

Date: Fri Jul 10 2026 - 04:06:45 EST


On 7/9/26 12:02 PM, Christoph Hellwig wrote:
On Mon, Jul 06, 2026 at 07:44:14PM +0530, Nilay Shroff wrote:
+ /* Initialize unpublished lock-guarded variables. */
+ context_unsafe(
+ nvmeq->sq_tail = 0;
+ nvmeq->last_sq_tail = 0;
+ );

We'll still need to find a way to avoid this mess..

Okay so then I think lets annotate init function using
__context_unsafe and remove the initialization of variable
from within context_unsafe(...) statement expression.

Thanks,
--Nilay