blockdev: Fix regression with the default naming of throttling groups
commit704ab2fce49fa404a61c6dac85003bcc1e3d0192
authorAlberto Garcia <berto@igalia.com>
Fri, 8 Jul 2016 14:05:13 +0000 (8 17:05 +0300)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Fri, 5 Aug 2016 21:01:21 +0000 (5 16:01 -0500)
treea8f7a6b358a8652924bccf25e4b8ce9c2caefdf3
parent025c4e39f479eb498ee63b634d961a4cf357773e
blockdev: Fix regression with the default naming of throttling groups

When I/O limits are set for a block device, the name of the throttling
group is taken from the BlockBackend if the user doesn't specify one.

Commit efaa7c4eeb7490c6f37f3 moved the naming of the BlockBackend in
blockdev_init() to the end of the function, after I/O limits are set.
The consequence is that the throttling group gets an empty name.

Signed-off-by: Alberto Garcia <berto@igalia.com>
Reported-by: Stefan Hajnoczi <stefanha@redhat.com>
Cc: Max Reitz <mreitz@redhat.com>
Cc: qemu-stable@nongnu.org
* backport of ff356ee
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
blockdev.c