Lines Matching refs:sc_lock
630 sx_xlocked(&sc->sc_lock) ? M_WAITOK : M_NOWAIT); in g_raid_event_send()
646 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_raid_event_send()
648 sx_xunlock(&sc->sc_lock); in g_raid_event_send()
656 sx_xlock(&sc->sc_lock); in g_raid_event_send()
665 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_raid_event_cancel()
688 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_raid_event_check()
711 sx_assert(&sc->sc_lock, SX_LOCKED); in g_raid_ndisks()
733 sx_assert(&sc->sc_lock, SX_LOCKED); in g_raid_nsubdisks()
758 sx_assert(&sc->sc_lock, SX_LOCKED); in g_raid_get_subdisk()
920 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_raid_clean()
947 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_raid_dirty()
1170 sx_assert(&vol->v_softc->sc_lock, SX_LOCKED); in g_raid_is_in_locked_range()
1186 sx_assert(&sc->sc_lock, SX_LOCKED); in g_raid_start_request()
1263 sx_assert(&sc->sc_lock, SX_LOCKED); in g_raid_iodone()
1506 sx_xlock(&sc->sc_lock); in g_raid_worker()
1543 sx_xunlock(&sc->sc_lock); in g_raid_worker()
1546 sx_xlock(&sc->sc_lock); in g_raid_worker()
1588 sx_xlock(&sc->sc_lock); in g_raid_poll()
1611 sx_xunlock(&sc->sc_lock); in g_raid_poll()
1626 sx_assert(&sc->sc_lock, SX_LOCKED); in g_raid_launch_provider()
1719 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_raid_update_volume()
1766 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_raid_update_subdisk()
1787 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_raid_update_disk()
1804 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_raid_update_node()
1834 sx_xlock(&sc->sc_lock); in g_raid_access()
1863 sx_xunlock(&sc->sc_lock); in g_raid_access()
1891 sx_init(&sc->sc_lock, "graid:lock"); in g_raid_create_node()
1901 sx_destroy(&sc->sc_lock); in g_raid_create_node()
2056 sx_xunlock(&sc->sc_lock); in g_raid_destroy_node()
2057 sx_destroy(&sc->sc_lock); in g_raid_destroy_node()
2158 sx_assert(&sc->sc_lock, SX_XLOCKED); in g_raid_destroy()
2170 sx_xunlock(&sc->sc_lock); in g_raid_destroy()
2176 sx_xunlock(&sc->sc_lock); in g_raid_destroy()
2190 error = sx_sleep(&sc->sc_stopping, &sc->sc_lock, in g_raid_destroy()
2293 sx_xlock(&sc->sc_lock); in g_raid_destroy_geom()
2347 sx_xlock(&sc->sc_lock); in g_raid_dumpconf()
2391 sx_xunlock(&sc->sc_lock); in g_raid_dumpconf()
2398 sx_xlock(&sc->sc_lock); in g_raid_dumpconf()
2430 sx_xunlock(&sc->sc_lock); in g_raid_dumpconf()
2434 sx_xlock(&sc->sc_lock); in g_raid_dumpconf()
2448 sx_xunlock(&sc->sc_lock); in g_raid_dumpconf()
2471 sx_xlock(&sc->sc_lock); in g_raid_shutdown_post_sync()