Searched refs:poll_stat (Results 1 – 5 of 5) sorted by relevance
236 struct blk_rq_stat *poll_stat; in blk_stats_alloc_enable() local238 poll_stat = kcalloc(BLK_MQ_POLL_STATS_BKTS, sizeof(*poll_stat), in blk_stats_alloc_enable()240 if (!poll_stat) in blk_stats_alloc_enable()243 if (cmpxchg(&q->poll_stat, NULL, poll_stat) != NULL) { in blk_stats_alloc_enable()244 kfree(poll_stat); in blk_stats_alloc_enable()
33 if (!q->poll_stat) in queue_poll_stat_show()38 print_stat(m, &q->poll_stat[2 * bucket]); in queue_poll_stat_show()42 print_stat(m, &q->poll_stat[2 * bucket + 1]); in queue_poll_stat_show()
772 if (q->poll_stat) in blk_release_queue()777 kfree(q->poll_stat); in blk_release_queue()
4731 if (q->poll_stat) in blk_poll_stats_enable()4743 if (!q->poll_stat || blk_stat_is_active(q->poll_cb)) in blk_mq_poll_stats_start()4756 q->poll_stat[bucket] = cb->stat[bucket]; in blk_mq_poll_stats_fn()4786 if (q->poll_stat[bucket].nr_samples) in blk_mq_poll_nsecs()4787 ret = (q->poll_stat[bucket].mean + 1) / 2; in blk_mq_poll_nsecs()
476 struct blk_rq_stat *poll_stat; member