Searched refs:q_usage_counter (Results 1 – 10 of 10) sorted by relevance
90 percpu_ref_switch_to_atomic_sync(&q->q_usage_counter); in blk_pre_runtime_suspend()91 if (percpu_ref_is_zero(&q->q_usage_counter)) in blk_pre_runtime_suspend()
417 percpu_ref_exit(&q->q_usage_counter); in blk_cleanup_queue()437 if (percpu_ref_tryget_live(&q->q_usage_counter)) { in blk_queue_enter()447 percpu_ref_put(&q->q_usage_counter); in blk_queue_enter()495 percpu_ref_put(&q->q_usage_counter); in blk_queue_exit()501 container_of(ref, struct request_queue, q_usage_counter); in blk_queue_usage_counter_release()572 if (percpu_ref_init(&q->q_usage_counter, in blk_alloc_queue()587 percpu_ref_exit(&q->q_usage_counter); in blk_alloc_queue()
492 percpu_ref_get(&q->q_usage_counter); in blk_mq_sched_insert_requests()513 percpu_ref_put(&q->q_usage_counter); in blk_mq_sched_insert_requests()
138 percpu_ref_kill(&q->q_usage_counter); in blk_freeze_queue_start()150 wait_event(q->mq_freeze_wq, percpu_ref_is_zero(&q->q_usage_counter)); in blk_mq_freeze_queue_wait()158 percpu_ref_is_zero(&q->q_usage_counter), in blk_mq_freeze_queue_wait_timeout()196 percpu_ref_resurrect(&q->q_usage_counter); in blk_mq_unfreeze_queue()995 if (!percpu_ref_tryget(&q->q_usage_counter)) in blk_mq_timeout_work()2565 if (percpu_ref_tryget(&hctx->queue->q_usage_counter)) { in blk_mq_hctx_notify_offline()2568 percpu_ref_put(&hctx->queue->q_usage_counter); in blk_mq_hctx_notify_offline()
447 if (!percpu_ref_tryget(&q->q_usage_counter)) in blk_mq_queue_tag_busy_iter()
862 percpu_ref_switch_to_percpu(&q->q_usage_counter); in blk_register_queue()
338 container_of(pgmap->ref, struct request_queue, q_usage_counter); in pmem_pagemap_cleanup()351 container_of(pgmap->ref, struct request_queue, q_usage_counter); in pmem_pagemap_kill()429 pmem->pgmap.ref = &q->q_usage_counter; in pmem_attach_disk()
834 if (!percpu_ref_tryget(&q->q_usage_counter)) { in recv_work()842 percpu_ref_put(&q->q_usage_counter); in recv_work()849 percpu_ref_put(&q->q_usage_counter); in recv_work()
602 percpu_ref_get(&q->q_usage_counter); in scsi_end_request()608 percpu_ref_put(&q->q_usage_counter); in scsi_end_request()
408 struct percpu_ref q_usage_counter; member