OSDN Git Service

scsi: cleanup scsi_clear_unit_attention()
authorStefano Garzarella <sgarzare@redhat.com>
Wed, 12 Jul 2023 13:43:51 +0000 (15:43 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 14 Jul 2023 09:10:58 +0000 (11:10 +0200)
commitba947dab98e7cd4337c70975bd255701a2a6aad8
tree2f106da656d947176af116ebf9f0be7f480e43f2
parent9472083e642bfb9bc836b38662baddd9bc964ebc
scsi: cleanup scsi_clear_unit_attention()

The previous commit moved the unit attention clearing when we create
the request. So now we can clean scsi_clear_unit_attention() to handle
only the case of the REPORT LUNS command: this is the only case in
which a UNIT ATTENTION is cleared without having been reported.

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