Re: [PATCH v7 5/6] scsi: core: Protect host state changes with the host lock
Bart Van Assche <[email protected]>
| Newsgroups | gmane.linux.scsi |
|---|---|
| Message-ID | <[email protected]> |
On 8/14/26 7:59 AM, John Garry wrote: > with my changes in https://lore.kernel.org/linux-scsi/ > [email protected]/T/ > #m064c12513575565cc08afa15738215b98bcca142 on top of this series, I > notice that the following 2x forms of annotation are compliant for the > context analysis checking: > > __must_hold(shost->host_lock) > __must_hold(&shost->host_lock) This is consistent with my observations - it seems like Clang accepts both forms. Marco, do you perhaps know whether this is a bug or a feature? I couldn't find the answer to this question in https://clang.llvm.org/docs/ThreadSafetyAnalysis.html. Thanks, Bart.