diff options
author | Halil Pasic <pasic@linux.ibm.com> | 2020-02-13 13:37:28 +0100 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2020-03-08 10:35:24 +0100 |
commit | 3d973b2e9a625996ee997c7303cd793b9d197c65 (patch) | |
tree | 98fa7f3f92323a8c404b99d22ff34be3d97ad3a4 /drivers/virtio | |
parent | virtio-blk: fix hw_queue stopped on arbitrary error (diff) | |
download | linux-3d973b2e9a625996ee997c7303cd793b9d197c65.tar.xz linux-3d973b2e9a625996ee997c7303cd793b9d197c65.zip |
virtio-blk: improve virtqueue error to BLK_STS
Let's change the mapping between virtqueue_add errors to BLK_STS
statuses, so that -ENOSPC, which indicates virtqueue full is still
mapped to BLK_STS_DEV_RESOURCE, but -ENOMEM which indicates non-device
specific resource outage is mapped to BLK_STS_RESOURCE.
Signed-off-by: Halil Pasic <pasic@linux.ibm.com>
Link: https://lore.kernel.org/r/20200213123728.61216-3-pasic@linux.ibm.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'drivers/virtio')
0 files changed, 0 insertions, 0 deletions