Searched hist:"23987471285 a26397e3152a9244b652445fd36c4" (Results 1 – 4 of 4) sorted by relevance
/qemu/tests/unit/ |
H A D | test-bdrv-drain.c | 23987471285a26397e3152a9244b652445fd36c4 Fri Nov 18 17:41:09 UTC 2022 Kevin Wolf <kwolf@redhat.com> block: Don't poll in bdrv_replace_child_noperm()
In order to make sure that bdrv_replace_child_noperm() doesn't have to poll any more, get rid of the bdrv_parent_drained_begin_single() call.
This is possible now because we can require that the parent is already drained through the child in question when the function is called and we don't call the parent drain callbacks more than once.
The additional drain calls needed in callers cause the test case to run its code in the drain handler too early (bdrv_attach_child() drains now), so modify it to only enable the code after the test setup has completed.
Signed-off-by: Kevin Wolf <kwolf@redhat.com> Message-Id: <20221118174110.55183-15-kwolf@redhat.com> Reviewed-by: Hanna Reitz <hreitz@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|
/qemu/include/block/ |
H A D | block-io.h | 23987471285a26397e3152a9244b652445fd36c4 Fri Nov 18 17:41:09 UTC 2022 Kevin Wolf <kwolf@redhat.com> block: Don't poll in bdrv_replace_child_noperm()
In order to make sure that bdrv_replace_child_noperm() doesn't have to poll any more, get rid of the bdrv_parent_drained_begin_single() call.
This is possible now because we can require that the parent is already drained through the child in question when the function is called and we don't call the parent drain callbacks more than once.
The additional drain calls needed in callers cause the test case to run its code in the drain handler too early (bdrv_attach_child() drains now), so modify it to only enable the code after the test setup has completed.
Signed-off-by: Kevin Wolf <kwolf@redhat.com> Message-Id: <20221118174110.55183-15-kwolf@redhat.com> Reviewed-by: Hanna Reitz <hreitz@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|
/qemu/block/ |
H A D | io.c | 23987471285a26397e3152a9244b652445fd36c4 Fri Nov 18 17:41:09 UTC 2022 Kevin Wolf <kwolf@redhat.com> block: Don't poll in bdrv_replace_child_noperm()
In order to make sure that bdrv_replace_child_noperm() doesn't have to poll any more, get rid of the bdrv_parent_drained_begin_single() call.
This is possible now because we can require that the parent is already drained through the child in question when the function is called and we don't call the parent drain callbacks more than once.
The additional drain calls needed in callers cause the test case to run its code in the drain handler too early (bdrv_attach_child() drains now), so modify it to only enable the code after the test setup has completed.
Signed-off-by: Kevin Wolf <kwolf@redhat.com> Message-Id: <20221118174110.55183-15-kwolf@redhat.com> Reviewed-by: Hanna Reitz <hreitz@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|
/qemu/ |
H A D | block.c | 23987471285a26397e3152a9244b652445fd36c4 Fri Nov 18 17:41:09 UTC 2022 Kevin Wolf <kwolf@redhat.com> block: Don't poll in bdrv_replace_child_noperm()
In order to make sure that bdrv_replace_child_noperm() doesn't have to poll any more, get rid of the bdrv_parent_drained_begin_single() call.
This is possible now because we can require that the parent is already drained through the child in question when the function is called and we don't call the parent drain callbacks more than once.
The additional drain calls needed in callers cause the test case to run its code in the drain handler too early (bdrv_attach_child() drains now), so modify it to only enable the code after the test setup has completed.
Signed-off-by: Kevin Wolf <kwolf@redhat.com> Message-Id: <20221118174110.55183-15-kwolf@redhat.com> Reviewed-by: Hanna Reitz <hreitz@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
|