diff options
| author | Bart Van Assche <bvanassche@acm.org> | 2026-08-07 15:49:50 -0700 |
|---|---|---|
| committer | Martin K. Petersen (Oracle) <mkp@kernel.org> | 2026-08-13 22:04:50 -0400 |
| commit | 4c461ee2b2a5a7c327fe092b41de1fcc002adc01 (patch) | |
| tree | d4e4a1664e6c59e611901096be163e3a70ce8443 /scripts/objdiff | |
| parent | 09982efcc07e739c7e4ac6089e3e521132388b53 (diff) | |
| download | linux-next-4c461ee2b2a5a7c327fe092b41de1fcc002adc01.tar.gz linux-next-4c461ee2b2a5a7c327fe092b41de1fcc002adc01.zip | |
scsi: core: Protect host state changes with the host lock
Some but not all SCSI host state changes are protected with the SCSI
host lock. Annotate the SCSI host state with __guarded_by(host_lock) and
protect all SCSI host state changes with the SCSI host lock. This patch
prevents that KCSAN complains about data races when accessing the SCSI
host state.
Reported-by: Jianzhou Zhao <luckd0g@163.com>
Closes: https://lore.kernel.org/all/36d59d0e.6db0.19cdbeee01b.Coremail.luckd0g@163.com/
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Link: https://patch.msgid.link/681e4a5260c182feb5fc1d96f0d43c62c21dc6c9.1786142946.git.bvanassche@acm.org
Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions
