From: Mauricio Faria de Oliveira Subject: Re: [PATCH 2/2] multipathd: skip spurious event message for blacklisted paths Date: Tue, 13 Dec 2016 14:43:43 -0200 Message-ID: <55f744bb-a896-c9b0-31c1-6077bd052ab4@linux.vnet.ibm.com> References: <1481385923-12407-1-git-send-email-mauricfo@linux.vnet.ibm.com> <1481385923-12407-2-git-send-email-mauricfo@linux.vnet.ibm.com> <20161212142340.GA19659@octiron.msp.redhat.com> <9c8e2633-c6a8-24ec-c4ad-e37e662b07f6@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <9c8e2633-c6a8-24ec-c4ad-e37e662b07f6@linux.vnet.ibm.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: Benjamin Marzinski Cc: dm-devel@redhat.com List-Id: dm-devel.ids Ben, On 12/12/2016 01:20 PM, Mauricio Faria de Oliveira wrote: > On 12/12/2016 12:23 PM, Benjamin Marzinski wrote: >> Why don't we just call pathinfo here? I see that you set the pathvec to >> NULL so that you don't actually store the path, but this sure does a lot >> of unnecessary work before failing. AFAICT, just calling pathinfo with >> DI_BLACKLIST already gets you what you need (it checks both the device >> and wwid blacklists). Am I missing something here? > > path_discover() also calls filter_property() and filter_devnode(), > so more blacklisting methods are covered. > > (filter_devnode() is also checked by uev_trigger(), but I wanted > to reuse the existing code to keep the patch simple.) I found a better way to do this which should also honor your point about the unnecessary work/overhead; PATCH v2 on the way. -- Mauricio Faria de Oliveira IBM Linux Technology Center