|
From: | Vladimir Sementsov-Ogievskiy |
Subject: | Re: [PATCH v2] tests/unit/test-blockjob: Re-enable complete_in_standby test |
Date: | Wed, 26 Apr 2023 14:39:50 +0300 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.9.0 |
On 26.04.23 13:40, Emanuele Giuseppe Esposito wrote:
Pause the job while draining so that pause_count will be increased and bdrv_drain_all_end() won't reset it to 0, so the job will not continue. With this fix, the test is not flaky anymore. Additionally remove useless aiocontext lock around bdrv_drain_all_end() in test_complete_in_standby(). Fixes: b6903cbe3a2 "tests/unit/test-blockjob: Disable complete_in_standby test" Suggested-by: Hanna Czenczek<hreitz@redhat.com> Signed-off-by: Emanuele Giuseppe Esposito<eesposit@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> -- Best regards, Vladimir
[Prev in Thread] | Current Thread | [Next in Thread] |