From: Martin Wilck Subject: [RFC PATCH 7/7] libmpathpersist: don't bother with priorities Date: Sat, 18 May 2019 00:57:03 +0200 Message-ID: <20190517225703.16295-8-mwilck@suse.com> References: <20190517225703.16295-1-mwilck@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20190517225703.16295-1-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 To: Benjamin Marzinski Cc: dbond@redhat.com, dm-devel@redhat.com, Martin Wilck List-Id: dm-devel.ids We send our PR commands to every active path, regardless of priority. Thus we can save the effort to obtain priorities. --- libmpathpersist/mpath_persist.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/libmpathpersist/mpath_persist.c b/libmpathpersist/mpath_persist.c index ce72da67..599c5e9e 100644 --- a/libmpathpersist/mpath_persist.c +++ b/libmpathpersist/mpath_persist.c @@ -114,12 +114,6 @@ updatepaths (struct multipath * mpp) pathinfo(pp, conf, DI_CHECKER); put_multipath_config(conf); } - - if (pp->priority == PRIO_UNDEF) { - conf = get_multipath_config(); - pathinfo(pp, conf, DI_PRIO); - put_multipath_config(conf); - } } } return 0; @@ -413,7 +407,6 @@ get_mpvec (vector curmp, vector pathvec, char * refwwid) * about them */ updatepaths(mpp); - mpp->bestpg = select_path_group (mpp); disassemble_status (status, mpp); } -- 2.21.0