Lines Matching full:sq_lock
160 ASSERT(MUTEX_HELD(&(sqp)->sq_lock)); \
182 ASSERT(MUTEX_HELD(&(sqp)->sq_lock)); \
194 ASSERT(MUTEX_HELD(&(sqp)->sq_lock)); \
207 ASSERT(MUTEX_HELD(&(sqp)->sq_lock)); \
277 mutex_enter(&sqp->sq_lock); in squeue_bind()
283 mutex_exit(&sqp->sq_lock); in squeue_bind()
295 mutex_exit(&sqp->sq_lock); in squeue_bind()
301 mutex_enter(&sqp->sq_lock); in squeue_unbind()
303 mutex_exit(&sqp->sq_lock); in squeue_unbind()
309 mutex_exit(&sqp->sq_lock); in squeue_unbind()
317 ASSERT(MUTEX_HELD(&(sqp)->sq_lock)); in squeue_worker_wakeup()
324 mutex_exit(&sqp->sq_lock); in squeue_worker_wakeup()
347 mutex_exit(&sqp->sq_lock); in squeue_worker_wakeup()
351 mutex_exit(&sqp->sq_lock); in squeue_worker_wakeup()
354 mutex_exit(&sqp->sq_lock); in squeue_worker_wakeup()
362 * with sq_lock held for performance reasons, in squeue_worker_wakeup()
363 * so drop the sq_lock before calling timeout in squeue_worker_wakeup()
365 * after re acquiring the sq_lock. Once in squeue_worker_wakeup()
366 * the sq_lock is dropped, someone else could in squeue_worker_wakeup()
371 mutex_exit(&sqp->sq_lock); in squeue_worker_wakeup()
373 mutex_enter(&sqp->sq_lock); in squeue_worker_wakeup()
380 mutex_exit(&sqp->sq_lock); in squeue_worker_wakeup()
385 mutex_exit(&sqp->sq_lock); in squeue_worker_wakeup()
390 * reacquire the sq_lock. squeue_fire in squeue_worker_wakeup()
395 mutex_exit(&sqp->sq_lock); in squeue_worker_wakeup()
400 ASSERT(MUTEX_NOT_HELD(&sqp->sq_lock)); in squeue_worker_wakeup()
436 ASSERT(MUTEX_NOT_HELD(&sqp->sq_lock)); in squeue_enter()
439 mutex_enter(&sqp->sq_lock); in squeue_enter()
459 mutex_exit(&sqp->sq_lock); in squeue_enter()
494 ASSERT(MUTEX_NOT_HELD(&sqp->sq_lock)); in squeue_enter()
495 mutex_enter(&sqp->sq_lock); in squeue_enter()
512 mutex_exit(&sqp->sq_lock); in squeue_enter()
522 mutex_exit(&sqp->sq_lock); in squeue_enter()
555 ASSERT(MUTEX_HELD(&sqp->sq_lock)); in squeue_enter()
570 mutex_exit(&sqp->sq_lock); in squeue_enter()
592 mutex_exit(&sqp->sq_lock); in squeue_enter()
619 mutex_enter(&sqp->sq_lock); in squeue_enter()
621 mutex_exit(&sqp->sq_lock); in squeue_enter()
640 mutex_exit(&sqp->sq_lock); in squeue_enter()
670 mutex_exit(&sqp->sq_lock); in squeue_enter()
685 mutex_enter(&sqp->sq_lock); in squeue_fire()
689 mutex_exit(&sqp->sq_lock); in squeue_fire()
707 mutex_exit(&sqp->sq_lock); in squeue_fire()
731 ASSERT(mutex_owned(&sqp->sq_lock)); in squeue_drain()
740 ASSERT(mutex_owned(&sqp->sq_lock)); in squeue_drain()
758 * for sq_lock or higher priority thread preempting us). in squeue_drain()
766 mutex_exit(&sqp->sq_lock); in squeue_drain()
831 mutex_enter(&sqp->sq_lock); in squeue_drain()
932 mutex_enter(&sqp->sq_lock); in squeue_drain()
1015 * the sq_lock since the thread can block. So we drop the sq_lock before
1033 kmutex_t *lock = &sqp->sq_lock; in squeue_polling_thread()
1207 ASSERT(MUTEX_HELD(&sqp->sq_lock)); in squeue_worker_thr_control()
1222 cv_wait(&sqp->sq_worker_cv, &sqp->sq_lock); in squeue_worker_thr_control()
1251 cv_wait(&sqp->sq_worker_cv, &sqp->sq_lock); in squeue_worker_thr_control()
1258 * cpu_lock -> ill_lock -> sqset_lock -> sq_lock in squeue_worker_thr_control()
1260 mutex_exit(&sqp->sq_lock); in squeue_worker_thr_control()
1262 mutex_enter(&sqp->sq_lock); in squeue_worker_thr_control()
1271 * corresponding squeue, ill_lock* and sq_lock. Holding any in squeue_worker_thr_control()
1301 cv_wait(&sqp->sq_worker_cv, &sqp->sq_lock); in squeue_worker_thr_control()
1309 kmutex_t *lock = &sqp->sq_lock; in squeue_worker()
1387 mutex_enter(&sqp->sq_lock); in squeue_wakeup_conn()
1403 cv_wait(&sqp->sq_synch_cv, &sqp->sq_lock); in squeue_wakeup_conn()
1405 mutex_exit(&sqp->sq_lock); in squeue_wakeup_conn()
1416 mutex_enter(&sqp->sq_lock); in squeue_synch_enter()
1429 mutex_exit(&sqp->sq_lock); in squeue_synch_enter()
1438 mutex_enter(&sqp->sq_lock); in squeue_synch_enter()
1441 mutex_exit(&sqp->sq_lock); in squeue_synch_enter()
1456 mutex_exit(&sqp->sq_lock); in squeue_synch_enter()
1476 cv_wait(&connp->conn_sq_cv, &sqp->sq_lock); in squeue_synch_enter()
1477 mutex_exit(&sqp->sq_lock); in squeue_synch_enter()
1491 mutex_enter(&sqp->sq_lock); in squeue_synch_exit()
1500 mutex_exit(&sqp->sq_lock); in squeue_synch_exit()
1513 mutex_exit(&sqp->sq_lock); in squeue_synch_exit()
1526 mutex_exit(&sqp->sq_lock); in squeue_synch_exit()