virtio-blk: use a helper to handle request queuing errors
authorDmitry Fomichev <dmitry.fomichev@wdc.com>
Sun, 16 Oct 2022 03:41:26 +0000 (23:41 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 28 Dec 2022 10:09:47 +0000 (05:09 -0500)
commit258896fcc786b4e7db238eba26f6dd080e0ff41e
tree1a3523a1c6912a5b331b423b0847326e502969f7
parentc262f75cb6bb5a63828e72ce3b8fe808e5029479
virtio-blk: use a helper to handle request queuing errors

Define a new helper function, virtblk_fail_to_queue(), to
clean up the error handling code in virtio_queue_rq().

Signed-off-by: Dmitry Fomichev <dmitry.fomichev@wdc.com>
Message-Id: <20221016034127.330942-2-dmitry.fomichev@wdc.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/block/virtio_blk.c