Skip to content
Commit 9584ce86 authored by Dmitry Fomichev's avatar Dmitry Fomichev Committed by Greg Kroah-Hartman
Browse files

virtio-blk: use a helper to handle request queuing errors

[ Upstream commit 258896fc

 ]

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

Signed-off-by: default avatarDmitry Fomichev <dmitry.fomichev@wdc.com>
Message-Id: <20221016034127.330942-2-dmitry.fomichev@wdc.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Stable-dep-of: a26116c1

 ("virtio_blk: Fix signedness bug in virtblk_prep_rq()")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent ffa83fba
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment