qemu-devel
[Top][All Lists]
Advanced

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

Re: [PATCH v3 5/7] block/block-copy: block_copy(): add timeout_ns parame


From: Hanna Reitz
Subject: Re: [PATCH v3 5/7] block/block-copy: block_copy(): add timeout_ns parameter
Date: Thu, 7 Apr 2022 11:20:21 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.5.0

On 06.04.22 20:07, Vladimir Sementsov-Ogievskiy wrote:
Add possibility to limit block_copy() call in time. To be used in the
next commit.

As timed-out block_copy() call will continue in background anyway (we
can't immediately cancel IO operation), it's important also give user a
possibility to pass a callback, to do some additional actions on
block-copy call finish.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@openvz.org>
---
  include/block/block-copy.h |  4 +++-
  block/block-copy.c         | 33 ++++++++++++++++++++++++++-------
  block/copy-before-write.c  |  2 +-
  3 files changed, 30 insertions(+), 9 deletions(-)

Reviewed-by: Hanna Reitz <hreitz@redhat.com>




reply via email to

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