summaryrefslogtreecommitdiff
path: root/Kbuild
diff options
context:
space:
mode:
authorMike Christie <michael.christie@oracle.com>2020-11-09 23:33:23 -0600
committerMichael S. Tsirkin <mst@redhat.com>2020-11-15 17:30:55 -0500
commitefd838fec17bd8756da852a435800a7e6281bfbc (patch)
tree0b88ddf8e3baa050172108419936b6e6cd2b9b23 /Kbuild
parent18f1becb6948cd411fd01968a0a54af63732e73c (diff)
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 'Kbuild')
0 files changed, 0 insertions, 0 deletions