virtio-blk: Refactor the code that processes queued requests
commit7aa1c247b466870b0704d3ccdc3755e5e7394dca
authorSergio Lopez <slp@redhat.com>
Wed, 3 Jun 2020 09:32:39 +0000 (3 11:32 +0200)
committerKevin Wolf <kwolf@redhat.com>
Wed, 17 Jun 2020 12:53:39 +0000 (17 14:53 +0200)
treed189203f115645e4e3c426d22a1abae6b4d33121
parent5fb0a6b5e771b235275acc8af7da490de072917b
virtio-blk: Refactor the code that processes queued requests

Move the code that processes queued requests from
virtio_blk_dma_restart_bh() to its own, non-static, function. This
will allow us to call it from the virtio_blk_data_plane_start() in a
future patch.

Signed-off-by: Sergio Lopez <slp@redhat.com>
Message-Id: <20200603093240.40489-2-slp@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
hw/block/virtio-blk.c
include/hw/virtio/virtio-blk.h