virtio-blk: Release s->rq queue at system_reset
commit26307f6aa451708b8c60a49d605a78bbd29f70ef
authorFam Zheng <famz@redhat.com>
Thu, 4 Aug 2016 02:44:13 +0000 (4 10:44 +0800)
committerStefan Hajnoczi <stefanha@redhat.com>
Fri, 5 Aug 2016 08:59:06 +0000 (5 09:59 +0100)
tree80fe99e3520fabb9c5445b223497fe1fbdbef900
parent5fc8c052ce0ab8cc476a4a3888cc31d52783c315
virtio-blk: Release s->rq queue at system_reset

At system_reset, there is no point in retrying the queued request,
because the driver that issued the request won't be around any more.

Analyzed-by: Laszlo Ersek <lersek@redhat.com>
Reported-by: Laszlo Ersek <lersek@redhat.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
Message-id: 1470278654-13525-2-git-send-email-famz@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
hw/block/virtio-blk.c