]> git.proxmox.com Git - mirror_qemu.git/commit - block/qcow2.c
qcow2: Execute run_dependent_requests() without lock
authorKevin Wolf <kwolf@redhat.com>
Fri, 7 Dec 2012 17:08:48 +0000 (18:08 +0100)
committerKevin Wolf <kwolf@redhat.com>
Thu, 13 Dec 2012 14:37:59 +0000 (15:37 +0100)
commit4e95314e2bb7baa64f2a9026df5e2649081b7060
treed410d6e0888f75e4a6f5f077c160d1b193eee1c6
parent280d373579558f73a8b70e329d9a6206933d3809
qcow2: Execute run_dependent_requests() without lock

There's no reason for run_dependent_requests() to hold s->lock, and a
later patch will require that in fact the lock is not held.

Also, before this patch, run_dependent_requests() not only does what its
name suggests, but also removes the l2meta from the list of in-flight
requests. When changing this, it becomes an one-liner, so just inline it
completely.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2.c