Lines Matching refs:lcp
141 struct g_consumer *lcp; in g_multipath_fault() local
148 LIST_FOREACH(lcp, &gp->consumer, consumer) { in g_multipath_fault()
149 if (lcp->provider == NULL || in g_multipath_fault()
150 (lcp->index & (MP_LOST | MP_NEW))) in g_multipath_fault()
152 if (sc->sc_ndisks > 1 && lcp == cp) in g_multipath_fault()
156 sc->sc_name, lcp->provider->name); in g_multipath_fault()
158 sc->sc_name, lcp->provider->name); in g_multipath_fault()
159 lcp->index &= ~MP_FAIL; in g_multipath_fault()
165 LIST_FOREACH(lcp, &gp->consumer, consumer) { in g_multipath_fault()
166 if ((lcp->index & MP_BAD) == 0) { in g_multipath_fault()
167 sc->sc_active = lcp; in g_multipath_fault()
715 struct g_consumer *lcp, *first_good_cp = NULL; in g_multipath_rotate() local
722 LIST_FOREACH(lcp, &gp->consumer, consumer) { in g_multipath_rotate()
723 if ((lcp->index & MP_BAD) == 0) { in g_multipath_rotate()
725 first_good_cp = lcp; in g_multipath_rotate()
729 if (sc->sc_active == lcp) in g_multipath_rotate()
732 if (lcp == NULL) in g_multipath_rotate()
733 lcp = first_good_cp; in g_multipath_rotate()
734 if (lcp && lcp != sc->sc_active) { in g_multipath_rotate()
735 sc->sc_active = lcp; in g_multipath_rotate()
738 lcp->provider->name, sc->sc_name); in g_multipath_rotate()