qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] mirror: stop cancelling in-flight requests on non-force canc


From: Max Reitz
Subject: Re: [PATCH] mirror: stop cancelling in-flight requests on non-force cancel in READY
Date: Fri, 30 Apr 2021 12:56:14 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1

On 21.04.21 09:58, Vladimir Sementsov-Ogievskiy wrote:
If mirror is READY than cancel operation is not discarding the whole
result of the operation, but instead it's a documented way get a
point-in-time snapshot of source disk.

So, we should not cancel any requests if mirror is READ and
force=false. Let's fix that case.

Note, that bug that we have before this commit is not critical, as the
only .bdrv_cancel_in_flight implementation is nbd_cancel_in_flight()
and it cancels only requests waiting for reconnection, so it should be
rare case.

Fixes: 521ff8b779b11c394dbdc43f02e158dd99df308a
Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
---
  include/block/block_int.h | 2 +-
  include/qemu/job.h        | 2 +-
  block/backup.c            | 2 +-
  block/mirror.c            | 6 ++++--
  job.c                     | 2 +-
  tests/qemu-iotests/264    | 2 +-
  6 files changed, 9 insertions(+), 7 deletions(-)

Thanks, applied to my block branch:

https://github.com/XanClic/qemu/commits/block

Max




reply via email to

[Prev in Thread] Current Thread [Next in Thread]