Lines Matching refs:exec_lock
252 krwlock_t exec_lock __cacheline_aligned;
845 rw_enter(&exec_lock, RW_READER);
919 rw_exit(&exec_lock);
1197 * might not hold the reader lock on exec_lock, but the parent
1200 KASSERT(no_local_exec_lock || rw_lock_held(&exec_lock));
1391 rw_exit(&exec_lock);
1436 rw_exit(&exec_lock);
1824 rw_enter(&exec_lock, RW_WRITER);
1832 rw_exit(&exec_lock);
1857 rw_exit(&exec_lock);
1863 rw_exit(&exec_lock);
1883 rw_enter(&exec_lock, RW_WRITER);
1890 rw_exit(&exec_lock);
1913 rw_exit(&exec_lock);
1920 * Once system is multiuser, this should be called with exec_lock held,
1937 rw_init(&exec_lock);
1944 KASSERT(rw_write_held(&exec_lock));
2012 KASSERT(rw_lock_held(&exec_lock));
2065 KASSERT(rw_lock_held(&exec_lock));
2295 * holding the exec_lock, and the compat code needs
2317 * will be able to acquire its own exec_lock. If it can, the parent can
2339 * We then try to get the exec_lock, and only if that works, we can
2345 && rw_tryenter(&exec_lock, RW_READER)) {
2422 rw_exit(&exec_lock);
2839 rw_exit(&exec_lock);
2865 rw_exit(&exec_lock);