From: Hannes Reinecke Subject: Re: [PATCH 08/10] fix INIT_REQUESTED_UDEV code Date: Sun, 30 Oct 2016 14:48:54 +0100 Message-ID: References: <1477709726-5442-1-git-send-email-bmarzins@redhat.com> <1477709726-5442-9-git-send-email-bmarzins@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="windows-1252"; Format="flowed" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1477709726-5442-9-git-send-email-bmarzins@redhat.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 , device-mapper development List-Id: dm-devel.ids On 10/29/2016 04:55 AM, Benjamin Marzinski wrote: > uev_update_path was not checking pp->initialized to see if multipathd > had requested that the path be reinitialized unless the path's read-only > state had changed. This kept the reinitialization code from running in > most cases where it was supposed to. This patch reorders the function to > move that check outside the read-only status change code block. This > does mean that uev_update_path now always grabs the vecs lock, where > before it would only be grabbed if the read-only status had changed. If > people are worried about this, I can add some code to limit this so that > uev_update_path will only grab it if there is a chance that it needs to > reinitialize the path. > > Cc: Hannes Reinecke > Signed-off-by: Benjamin Marzinski > --- > multipathd/main.c | 54 +++++++++++++++++++------------------------------= ----- > 1 file changed, 19 insertions(+), 35 deletions(-) > Reviewed-by: Hannes Reinecke Cheers, Hannes -- = Dr. Hannes Reinecke zSeries & Storage hare@suse.de +49 911 74053 688 SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 N=FCrnberg GF: J. Hawn, J. Guild, F. Imend=F6rffer, HRB 16746 (AG N=FCrnberg)