[PATCH 01/23] nvmet: add context annotation for nvmet_ns::bdev
Bart Van Assche
bvanassche at acm.org
Tue Nov 10 09:29:54 PST 2026
On 11/9/26 10:38 PM, Nilay Shroff wrote:
> I agree that passing the lock owner as a function argument is preferable
> whenever
> possible. For this particular case, I tried passing subsys down the call
> chain to
> nvmet_ns_dev() and annotating the function with __must_hold(&subsys-
> >lock). However,
> Clang still reports a locking violation when accessing ns->bdev:
Please take a look at the attached patches and consider to add these to
the start of this series. These patches are needed to implement what I
suggested in my previous email in this email thread.
Thanks,
Bart.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-nvme-Fix-lock-context-annotations-for-nvme_passthru_.patch
Type: text/x-patch
Size: 3548 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-nvme/attachments/20261110/f1e93467/attachment-0003.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-nvme-Pass-the-subsystem-pointer-to-nvme_find_ns_head.patch
Type: text/x-patch
Size: 2208 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-nvme/attachments/20261110/f1e93467/attachment-0004.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-nvme-Pass-the-subsystem-pointer-to-nvme_alloc_ns_hea.patch
Type: text/x-patch
Size: 3177 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-nvme/attachments/20261110/f1e93467/attachment-0005.bin>
More information about the Linux-nvme
mailing list