Lines Matching refs:lcp
142 struct g_consumer *lcp; in g_multipath_fault() local
149 LIST_FOREACH(lcp, &gp->consumer, consumer) { in g_multipath_fault()
150 if (lcp->provider == NULL || in g_multipath_fault()
151 (lcp->index & (MP_LOST | MP_NEW))) in g_multipath_fault()
153 if (sc->sc_ndisks > 1 && lcp == cp) in g_multipath_fault()
157 sc->sc_name, lcp->provider->name); in g_multipath_fault()
159 sc->sc_name, lcp->provider->name); in g_multipath_fault()
160 lcp->index &= ~MP_FAIL; in g_multipath_fault()
166 LIST_FOREACH(lcp, &gp->consumer, consumer) { in g_multipath_fault()
167 if ((lcp->index & MP_BAD) == 0) { in g_multipath_fault()
168 sc->sc_active = lcp; in g_multipath_fault()
716 struct g_consumer *lcp, *first_good_cp = NULL; in g_multipath_rotate() local
723 LIST_FOREACH(lcp, &gp->consumer, consumer) { in g_multipath_rotate()
724 if ((lcp->index & MP_BAD) == 0) { in g_multipath_rotate()
726 first_good_cp = lcp; in g_multipath_rotate()
730 if (sc->sc_active == lcp) in g_multipath_rotate()
733 if (lcp == NULL) in g_multipath_rotate()
734 lcp = first_good_cp; in g_multipath_rotate()
735 if (lcp && lcp != sc->sc_active) { in g_multipath_rotate()
736 sc->sc_active = lcp; in g_multipath_rotate()
739 lcp->provider->name, sc->sc_name); in g_multipath_rotate()