From: Jes Sorensen <jsorensen@xxxxxx> Signed-off-by: Jes Sorensen <jsorensen@xxxxxx> --- block/blk-sysfs.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/block/blk-sysfs.c b/block/blk-sysfs.c index f54d91b54b61..04d1938d1aa9 100644 --- a/block/blk-sysfs.c +++ b/block/blk-sysfs.c @@ -543,6 +543,14 @@ static ssize_t queue_stat_show(struct request_queue *q, char *p) q->dev_stat[i + 3 * bkt].size); } off += sprintf(p + off, "\n"); + + off += sprintf(p + off, "%s reqs: ", name[i]); + for (bkt = 0; bkt < (BLK_DEV_STATS_BKTS / 3); bkt++) { + off += sprintf(p + off, "%u ", + q->dev_stat[i + 3 * bkt].nr_samples); + } + + off += sprintf(p + off, "\n"); } return off; } -- 2.17.1