Hi, With current debugfs block layer infrastructure, we only get the total merge count which includes all the requests types, but we don't get the per request type merge count. This patch-series replaces the rq_merged variable into the rq_merged array so that we can track the per request type merged stats. Instead of having one number for all the requests which are merged, with this now we can get the detailed number of the merged requests per request type which is mergeable. This is helpful in the understanding merging of the requests under different workloads and for the special requests such as discard which implements request specific merging mechanism. * Changes since V1 :- 1. Add a reusable helper. 2. Only print merged stats for the requests which are mergeable. 3. Adjust the code for the latest block/for-next branch. Chaitanya Kulkarni (2): block: add helper to check mergeable req op block: track per requests type merged count block/blk-mq-debugfs.c | 12 ++++++++++-- block/blk-mq-sched.c | 2 +- block/blk-mq.h | 2 +- include/linux/blkdev.h | 24 +++++++++++++++++------- 4 files changed, 29 insertions(+), 11 deletions(-) -- 2.17.0