[PATCH v3 12/18] nvme: add context annotations for nvme_queue::sq_lock
Nilay Shroff
nilay at linux.ibm.com
Fri Jul 10 01:03:35 PDT 2026
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
More information about the Linux-nvme
mailing list