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: NDmitry Fomichev <dmitry.fomichev@wdc.com> Message-Id: <20221016034127.330942-2-dmitry.fomichev@wdc.com> Signed-off-by: NMichael S. Tsirkin <mst@redhat.com> Stable-dep-of: a26116c1 ("virtio_blk: Fix signedness bug in virtblk_prep_rq()") Signed-off-by: NSasha Levin <sashal@kernel.org>
Showing
想要评论请 注册 或 登录