From: Benjamin Marzinski Subject: Re: [PATCH v2 61/74] libmultipath: adopt_paths(): skip removed paths Date: Thu, 13 Aug 2020 20:37:35 -0500 Message-ID: <20200814013735.GB19233@octiron.msp.redhat.com> References: <20200812113511.26469-1-mwilck@suse.com> <20200812113511.26469-4-mwilck@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20200812113511.26469-4-mwilck@suse.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com Content-Disposition: inline To: mwilck@suse.com Cc: dm-devel@redhat.com List-Id: dm-devel.ids On Wed, Aug 12, 2020 at 01:35:06PM +0200, mwilck@suse.com wrote: > From: Martin Wilck > > If we don't do this, pathinfo() will fail on these paths, causing > adopt_paths() to fail. > Reviewed-by: Benjamin Marzinski > Signed-off-by: Martin Wilck > --- > libmultipath/structs_vec.c | 4 +++- > 1 file changed, 3 insertions(+), 1 deletion(-) > > diff --git a/libmultipath/structs_vec.c b/libmultipath/structs_vec.c > index f139fc0..ba3165a 100644 > --- a/libmultipath/structs_vec.c > +++ b/libmultipath/structs_vec.c > @@ -79,9 +79,11 @@ int adopt_paths(vector pathvec, struct multipath *mpp) > pp->dev, mpp->alias); > continue; > } > + pp->mpp = mpp; > + if (pp->initialized == INIT_REMOVED) > + continue; > condlog(3, "%s: ownership set to %s", > pp->dev, mpp->alias); > - pp->mpp = mpp; > > if (!mpp->paths && !(mpp->paths = vector_alloc())) > return 1; > -- > 2.28.0