]> git.ipfire.org Git - thirdparty/qemu.git/commit
blkdebug: Use QLIST_FOREACH_SAFE to resume IO
authorFam Zheng <famz@redhat.com>
Fri, 13 Dec 2013 07:25:12 +0000 (15:25 +0800)
committerKevin Wolf <kwolf@redhat.com>
Fri, 13 Dec 2013 16:11:19 +0000 (17:11 +0100)
commitc547e5640d5b0993cdfb252331065c1a1d813bd8
tree64996a43a78fa7ee499489e84727872e740c21f3
parent802c3d4ccc9853ee11c742bc206f284f04259426
blkdebug: Use QLIST_FOREACH_SAFE to resume IO

Qemu-iotest 030 was broken.

When the coroutine runs and finishes, it will remove itself from the req
list, so let's use safe version of foreach to avoid use after free.

Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/blkdebug.c