summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHalil Pasic <pasic@linux.ibm.com>2020-02-13 13:37:28 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-04-29 16:31:16 +0200
commit7231917fa7dbe478d1f65aaa482a3a0c70546c88 (patch)
treeeacb2d390dbeb30576ccc3ca1280fd09328397b9 /include
parent7ad65e34ad1026a1389171c0a8d963d22739934a (diff)
virtio-blk: improve virtqueue error to BLK_STS
[ Upstream commit 3d973b2e9a625996ee997c7303cd793b9d197c65 ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions