mirror: Use job_is_cancelled()
commit20ad4d204accb27346b05b046ee8225c6725ef49
authorHanna Reitz <hreitz@redhat.com>
Wed, 6 Oct 2021 15:19:36 +0000 (6 17:19 +0200)
committerVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Thu, 7 Oct 2021 08:42:50 +0000 (7 10:42 +0200)
treeb2b47fe625853804335c229ef3feaacde27bb1c9
parent08b83bff2a77e082d0b29680a40f0aaf9996bd16
mirror: Use job_is_cancelled()

mirror_drained_poll() returns true whenever the job is cancelled,
because "we [can] be sure that it won't issue more requests".  However,
this is only true for force-cancelled jobs, so use job_is_cancelled().

Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <20211006151940.214590-10-hreitz@redhat.com>
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
block/mirror.c