virtio block device hangs after "virtio_blk virtio3: requests:id 0 is not a head!"

Bug #1359394 reported by Slava Pestov
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
QEMU
Expired
Undecided
Unassigned

Bug Description

The virtual machine is running block layer workloads, interrupted by unclean reboots (echo b > /proc/sysrq-trigger). Kernel version is 3.14.

Sometimes, I get this message on boot:

"virtio_blk virtio3: requests:id 0 is not a head!"

Then, I/O to the virtio block devices just hangs.

Unfortunately I don't have a test case and this is kind of hard to reproduce, but it seems related to having I/O in flight when the kernel is forced to reboot.

Revision history for this message
Stefan Hajnoczi (stefanha) wrote : Re: [Qemu-devel] [Bug 1359394] [NEW] virtio block device hangs after "virtio_blk virtio3: requests:id 0 is not a head!"

On Wed, Aug 20, 2014 at 08:37:46PM -0000, Slava Pestov wrote:
> The virtual machine is running block layer workloads, interrupted by
> unclean reboots (echo b > /proc/sysrq-trigger). Kernel version is 3.14.
>
> Sometimes, I get this message on boot:
>
> "virtio_blk virtio3: requests:id 0 is not a head!"
>
> Then, I/O to the virtio block devices just hangs.
>
> Unfortunately I don't have a test case and this is kind of hard to
> reproduce, but it seems related to having I/O in flight when the kernel
> is forced to reboot.

Hi Slava,
Sounds like the virtio device was not reset properly.

The guest kernel is looking for completed responses from the host. The
host has indicated that descriptor 0 is the next completed response but
the guest does not remember having submitted it.

Do you have a kernel stack trace when this was encountered?

Stefan

Revision history for this message
Slava Pestov (sviatoslav-pestov) wrote :

You mean a kernel stack trace when the message was printed? I don't have that but I guess I could add a dump_stack() call in there.

Revision history for this message
Thomas Huth (th-huth) wrote :

Triaging old bug tickets ... can you still reproduce this issue with the latest version of QEMU and the kernel?

Changed in qemu:
status: New → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

[Expired for QEMU because there has been no activity for 60 days.]

Changed in qemu:
status: Incomplete → Expired
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.