diff options
author | Mike Christie <michael.christie@oracle.com> | 2020-11-10 08:33:23 +0300 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2020-11-16 01:30:55 +0300 |
commit | efd838fec17bd8756da852a435800a7e6281bfbc (patch) | |
tree | 0b88ddf8e3baa050172108419936b6e6cd2b9b23 /init/Kconfig | |
parent | 18f1becb6948cd411fd01968a0a54af63732e73c (diff) | |
download | linux-efd838fec17bd8756da852a435800a7e6281bfbc.tar.xz |
vhost scsi: Add support for LUN resets.
In newer versions of virtio-scsi we just reset the timer when an a
command times out, so TMFs are never sent for the cmd time out case.
However, in older kernels and for the TMF inject cases, we can still get
resets and we end up just failing immediately so the guest might see the
device get offlined and IO errors.
For the older kernel cases, we want the same end result as the
modern virtio-scsi driver where we let the lower levels fire their error
handling and handle the problem. And at the upper levels we want to
wait. This patch ties the LUN reset handling into the LIO TMF code which
will just wait for outstanding commands to complete like we are doing in
the modern virtio-scsi case.
Note: I did not handle the ABORT case to keep this simple. For ABORTs
LIO just waits on the cmd like how it does for the RESET case. If
an ABORT fails, the guest OS ends up escalating to LUN RESET, so in
the end we get the same behavior where we wait on the outstanding
cmds.
Signed-off-by: Mike Christie <michael.christie@oracle.com>
Link: https://lore.kernel.org/r/1604986403-4931-6-git-send-email-michael.christie@oracle.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'init/Kconfig')
0 files changed, 0 insertions, 0 deletions