lsi: Reselection needed to remove pending commands from queue
commit56333e69ee1855a8fa74b361742a0a79407846d2
authorGeorge Kennedy <george.kennedy@oracle.com>
Fri, 9 Nov 2018 15:18:12 +0000 (9 10:18 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 27 Nov 2018 14:06:14 +0000 (27 15:06 +0100)
tree2dd9d48eb91f047d34afcb834257c3a331bc8660
parenta8efa60633575a2ee4dbf807a71cb44d44b0e0f8
lsi: Reselection needed to remove pending commands from queue

Under heavy IO (e.g. fio) the queue is not checked frequently enough for
pending commands. As a result some pending commands are timed out by the
linux sym53c8xx driver, which sends SCSI Abort messages for the timed out
commands. The SCSI Abort messages result in linux errors, which show up
on the console and in /var/log/messages.

e.g.
sd 0:0:3:0: [sdd] tag#33 ABORT operation started
scsi target0:0:3: control msgout:
80 20 47 d
sd 0:0:3:0: ABORT operation complete.
scsi target0:0:4: message d sent on bad reselection

Now following a WAIT DISCONNECT Script instruction, and if there is no
current command, check for a pending command on the queue and if one
exists call lsi_reselect().

Signed-off-by: George Kennedy <george.kennedy@oracle.com>
Message-Id: <1541776692-12271-1-git-send-email-george.kennedy@oracle.com>
[For safety, add a s->current check in lsi_update_irq - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/scsi/lsi53c895a.c