]> git.hungrycats.org Git - linux/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Jan 2023 11:00:47 +0000 (12:00 +0100)
commit9584ce867dbd51730884a82f9a05b29348d78625
tree912f5a95c2a7ab2474312cdd45a76e1776440d2d
parentffa83fba2a2ce8010eb106c779378cb3013362c7
virtio-blk: use a helper to handle request queuing errors

[ Upstream commit 258896fcc786b4e7db238eba26f6dd080e0ff41e ]

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>
Stable-dep-of: a26116c1e740 ("virtio_blk: Fix signedness bug in virtblk_prep_rq()")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/block/virtio_blk.c