Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Apr 2023 12:30:54 -0700
From:      Cy Schubert <Cy.Schubert@cschubert.com>
To:        "Pokala, Ravi" <rpokala@panasas.com>
Cc:        Martin Matuska <mm@FreeBSD.org>, Rick Macklem <rick.macklem@gmail.com>, Mateusz Guzik <mjguzik@gmail.com>, "src-committers@freebsd.org" <src-committers@freebsd.org>, "dev-commits-src-all@freebsd.org" <dev-commits-src-all@freebsd.org>, "dev-commits-src-main@freebsd.org" <dev-commits-src-main@freebsd.org>
Subject:   Re: 8ee579abe09e - main - zfs: fall back if block_cloning feature is disabled
Message-ID:  <20230404123054.6cf5fb6b@slippy>
In-Reply-To: <5B7F71CC-5BE6-4938-A29E-E10B01A4E4ED@panasas.com>
References:  <202304041145.334Bjx6l035872@gitrepo.freebsd.org> <20230404141717.B976D31C@slippy.cwsent.com> <CAGudoHEvGDUQkYe8LwUXgTZZa%2B6DAFXVtspCX-Mn2egDO2oc_w@mail.gmail.com> <CAM5tNy6sPx4xE%2BcAeeC_RQG_tba_K6Yh-Cni0%2B-WxJ5SXCuO9A@mail.gmail.com> <98c71e6f-5b48-79f3-e7b0-95d674949624@FreeBSD.org> <20230404091844.639cb1c1@slippy> <5B7F71CC-5BE6-4938-A29E-E10B01A4E4ED@panasas.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 4 Apr 2023 17:54:28 +0000
"Pokala, Ravi" <rpokala@panasas.com> wrote:

> Cy,
>=20
> The patch adds 'bool done_outvp', unconditionally sets it to 'true', and =
then later has a check for 'if (!done_outvp)'. Since there is no intervenin=
g place where 'done_outvp' could be set to 'false', that check will never s=
ucceed and that branch is unreachable.

It's set to false at line 6454, in the loop locking vnodes.

>=20
> Or am I mis-reading something?

Maybe Rick can explain but all we're doing is ensuring that the first
part of the loop is executed only first time through. We could invert it
and save setting it to false every loop.

>=20
> Thanks,
>=20
> Ravi (rpokala@)
>=20

--=20
Cheers,
Cy Schubert <Cy.Schubert@cschubert.com>
FreeBSD UNIX:  <cy@FreeBSD.org>   Web:  https://FreeBSD.org
NTP:           <cy@nwtime.org>    Web:  https://nwtime.org

			e^(i*pi)+1=3D0


> =EF=BB=BF-----Original Message-----
> From: <owner-src-committers@freebsd.org <mailto:owner-src-committers@free=
bsd.org>> on behalf of Cy Schubert <Cy.Schubert@cschubert.com <mailto:Cy.Sc=
hubert@cschubert.com>>
> Organization: KOMQUATS
> Date: Tuesday, April 4, 2023 at 09:18
> To: Martin Matuska <mm@FreeBSD.org <mailto:mm@FreeBSD.org>>
> Cc: Rick Macklem <rick.macklem@gmail.com <mailto:rick.macklem@gmail.com>>=
, Mateusz Guzik <mjguzik@gmail.com <mailto:mjguzik@gmail.com>>, <src-commit=
ters@freebsd.org <mailto:src-committers@freebsd.org>>, <dev-commits-src-all=
@freebsd.org <mailto:dev-commits-src-all@freebsd.org>>, <dev-commits-src-ma=
in@freebsd.org <mailto:dev-commits-src-main@freebsd.org>>
> Subject: Re: git: 8ee579abe09e - main - zfs: fall back if block_cloning f=
eature is disabled
>=20
>=20
> On Tue, 4 Apr 2023 17:30:25 +0200
> Martin Matuska <mm@FreeBSD.org <mailto:mm@FreeBSD.org>> wrote:
>=20
>=20
> > So I am now a little bit confused - what is the consensus? :-) =20
>=20
>=20
> My exmh email client made a mess of that. Let's try this again.
>=20
>=20
> Rick has posted a patch. Your patch should also be incorporated to work=20
> around other EXDEV errors, but a few lines earlier so it is protected by=
=20
> the lock.
>=20
>=20
> There were a couple of typos in Rick's patch (a missing keystroke;=20
> s/ojset/objset/).
>=20
>=20
> The patch (Rick's null pointer dereference fix, Rick's copy file range=20
> patch plus your copy file range patch) builds fine on amd64 and i386.=20
> Installing and testing it now.
>=20
>=20
> A combination of all three patches is attached. It's compile tested but i=
s=20
> currently being installed and will be tested when install is completed.
>=20
>=20



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20230404123054.6cf5fb6b>