Counter productive change concerning hardware showing ghost paths,
like rdac.
goto blank;
/*
- * Retrieve path priority even for not PATH_UP paths if it has never
+ * Retrieve path priority, even for PATH_DOWN paths if it has never
* been successfully obtained before.
*/
if (mask & DI_PRIO &&
- (pp->state == PATH_UP || pp->priority == PRIO_UNDEF))
+ (pp->state != PATH_DOWN || pp->priority == PRIO_UNDEF))
get_prio(pp);
if (mask & DI_WWID && !strlen(pp->wwid))
priority = 0;
vector_foreach_slot (pgp->paths, pp, j) {
- if (pp->state == PATH_UP)
+ if (pp->state != PATH_DOWN)
priority += pp->priority;
}
pgp->priority = priority;