From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shriram Rajagopalan Subject: Re: [RFC Patch v3 16/22] blktap2: move ramdisk related codes to block-replication.c Date: Wed, 24 Sep 2014 11:44:33 -0700 Message-ID: References: <1409909158-19243-1-git-send-email-wency@cn.fujitsu.com> <1409909158-19243-17-git-send-email-wency@cn.fujitsu.com> Reply-To: rshriram@cs.ubc.ca Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============2624405282218255835==" Return-path: In-Reply-To: <1409909158-19243-17-git-send-email-wency@cn.fujitsu.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Wen Congyang Cc: Lai Jiangshan , Ian Jackson , Jiang Yunhong , Dong Eddie , xen devel , Yang Hongyang , Ian Campbell List-Id: xen-devel@lists.xenproject.org --===============2624405282218255835== Content-Type: multipart/alternative; boundary=047d7bdc0dd2349a420503d413f0 --047d7bdc0dd2349a420503d413f0 Content-Type: text/plain; charset=UTF-8 On Sep 5, 2014 5:32 AM, "Wen Congyang" wrote: > > COLO will reuse them > > Signed-off-by: Wen Congyang > Cc: Shriram Rajagopalan > --- > tools/blktap2/drivers/block-remus.c | 485 ++---------------------------- > tools/blktap2/drivers/block-replication.c | 452 ++++++++++++++++++++++++++++ > tools/blktap2/drivers/block-replication.h | 48 +++ > 3 files changed, 523 insertions(+), 462 deletions(-) > > diff --git a/tools/blktap2/drivers/block-remus.c b/tools/blktap2/drivers/block-remus.c > index 8b6f157..2713af1 100644 > --- a/tools/blktap2/drivers/block-remus.c > +++ b/tools/blktap2/drivers/block-remus.c ...snip.. > > static int backup_start(td_driver_t *driver) > @@ -1120,7 +686,9 @@ static void server_do_wreq(td_driver_t *driver) > if (mread(s->stream_fd.fd, buf, len) < 0) > goto err; > > - if (ramdisk_write(&s->ramdisk, *sector, *sectors, buf) < 0) { > + if (ramdisk_write_to_hashtable(s->h, *sector, *sectors, Please rename to something else. Eg, ramdisk flush to disk? I am fine with the rest of the patch. Have you tested this setup with Remus (not Colo) and ensured that you haven't reintroduced the write after write issue, that was fixed a couple of years ago? Although I don't know how you would test with 4.5 code base. Acked-by: Shriram Rajagopalan (subject to addressing the renaming comment) --047d7bdc0dd2349a420503d413f0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Sep 5, 2014 5:32 AM, "Wen Congyang" <wency@cn.fujitsu.com> wrote:
>
> =C2=A0COLO will reuse them
>
> Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
> Cc: Shriram Rajagopalan <rshr= iram@cs.ubc.ca>
> ---
> =C2=A0tools/blktap2/drivers/block-remus.c=C2=A0 =C2=A0 =C2=A0 =C2=A0| = 485 ++----------------------------
> =C2=A0tools/blktap2/drivers/block-replication.c | 452 ++++++++++++++++= ++++++++++++
> =C2=A0tools/blktap2/drivers/block-replication.h |=C2=A0 48 +++
> =C2=A03 files changed, 523 insertions(+), 462 deletions(-)
>
> diff --git a/tools/blktap2/drivers/block-remus.c b/tools/blktap2/drive= rs/block-remus.c
> index 8b6f157..2713af1 100644
> --- a/tools/blktap2/drivers/block-remus.c
> +++ b/tools/blktap2/drivers/block-remus.c
...snip..
>
> =C2=A0static int backup_start(td_driver_t *driver)
> @@ -1120,7 +686,9 @@ static void server_do_wreq(td_driver_t *driver) > =C2=A0 =C2=A0 =C2=A0 =C2=A0 if (mread(s->stream_fd.fd, buf, len) &l= t; 0)
> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 goto err;
>
> -=C2=A0 =C2=A0 =C2=A0 =C2=A0if (ramdisk_write(&s->ramdisk, *sec= tor, *sectors, buf) < 0) {
> +=C2=A0 =C2=A0 =C2=A0 =C2=A0if (ramdisk_write_to_hashtable(s->h, *s= ector, *sectors,

Please rename to something else.
Eg, ramdisk flush to disk?

I am fine with the rest of the patch. Have you tested this s= etup with Remus (not Colo) and ensured that you haven't reintroduced th= e write after write issue, that was fixed a couple of years ago? Although I= don't know how you would test with 4.5 code base.

Acked-by: Shriram Rajagopalan <rshriram@cs.ubc.ca>
(subject to addressing the renaming comment)

--047d7bdc0dd2349a420503d413f0-- --===============2624405282218255835== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel --===============2624405282218255835==--