[dm-devel] [PATCH] libmultipath/discovery.c: Fix a condition that will lead to a table reload during every check.
Christophe Varoqui
christophe.varoqui at opensvc.com
Thu Nov 14 21:09:24 UTC 2013
Applied.
Thanks.
Christophe Varoqui
www.opensvc.com
On Thu, Nov 14, 2013 at 1:06 AM, Sean Stewart <sean.stewart at netapp.com>wrote:
> If path_offline says PATH_UP and the checker says PATH_DOWN. In
> this case, pathinfo gets called twice, and the first call, from
> update_prio sets it to -1 because the checker says it's down. On the
> second pathinfo call, from update_path_groups, it will call the
> prioritizer based on the fact that the prio is -1. This leads to a flip
> flop of the priority value and a reload on every check.
>
> Signed-off-by: Sean Stewart <sean.stewart at netapp.com>
> ---
> libmultipath/discovery.c | 2 --
> 1 file changed, 2 deletions(-)
>
> diff --git a/libmultipath/discovery.c b/libmultipath/discovery.c
> index 7035a43..04e3ead 100644
> --- a/libmultipath/discovery.c
> +++ b/libmultipath/discovery.c
> @@ -1138,8 +1138,6 @@ pathinfo (struct path *pp, vector hwtable, int mask)
> if (!strlen(pp->wwid))
> get_uid(pp);
> get_prio(pp);
> - } else {
> - pp->priority = PRIO_UNDEF;
> }
> }
>
> --
> 1.8.3.1
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/dm-devel/attachments/20131114/ce3d6e29/attachment.htm>
More information about the dm-devel
mailing list