Re: [PATCH v7 5/6] scsi: core: Protect host state changes with the host lock

John Garry <[email protected]>
Newsgroups org.kernel.vger.linux-scsi
Organization Oracle Corporation
Message-ID <[email protected]>
On 07/08/2026 23:49, Bart Van Assche wrote:
>    int scsi_host_set_state(struct Scsi_Host *shost, enum scsi_host_state state)
> +	__must_hold(shost->host_lock)

Hi Bart,

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)

Is this as expected?

John
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.