OSDN Git Service

scsi: clear unit attention only for REPORT LUNS commands
authorStefano Garzarella <sgarzare@redhat.com>
Wed, 12 Jul 2023 13:43:52 +0000 (15:43 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Jul 2023 09:10:58 +0000 (11:10 +0200)
commit2eb5599e8a73e70a9e86a97120818ff95a43a23a
tree2c5ba44fce74332443c31ffe1a3c90370f761f5a
parentba947dab98e7cd4337c70975bd255701a2a6aad8
scsi: clear unit attention only for REPORT LUNS commands

scsi_clear_unit_attention() now only handles REPORTED LUNS DATA HAS
CHANGED.

This only happens when we handle REPORT LUNS commands, so let's rename
the function in scsi_clear_reported_luns_changed() and call it only in
scsi_target_emulate_report_luns().

Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Stefano Garzarella <sgarzare@redhat.com>
Message-ID: <20230712134352.118655-4-sgarzare@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/scsi-bus.c