Home
last modified time | relevance | path

Searched refs:poll_stat (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/block/
Dblk-stat.c236 struct blk_rq_stat *poll_stat; in blk_stats_alloc_enable() local
238 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()
Dblk-mq-debugfs.c33 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()
Dblk-sysfs.c772 if (q->poll_stat) in blk_release_queue()
777 kfree(q->poll_stat); in blk_release_queue()
Dblk-mq.c4731 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()
/linux-6.1.9/include/linux/
Dblkdev.h476 struct blk_rq_stat *poll_stat; member