You've already forked linux-apfs
mirror of
https://github.com/linux-apfs/linux-apfs.git
synced 2026-05-01 15:00:59 -07:00
mq-deadline: add debugfs attributes
Expose the fifo lists, cached next requests, batching state, and dispatch list. It'd also be possible to add the sorted lists, but there aren't already seq_file helpers for rbtrees. Signed-off-by: Omar Sandoval <osandov@fb.com> Reviewed-by: Hannes Reinecke <hare@suse.com> Signed-off-by: Jens Axboe <axboe@fb.com>
This commit is contained in:
committed by
Jens Axboe
parent
16b738f651
commit
daaadb3e94
@@ -267,9 +267,8 @@ static const char *const rqf_name[] = {
|
||||
};
|
||||
#undef RQF_NAME
|
||||
|
||||
int blk_mq_debugfs_rq_show(struct seq_file *m, void *v)
|
||||
int __blk_mq_debugfs_rq_show(struct seq_file *m, struct request *rq)
|
||||
{
|
||||
struct request *rq = list_entry_rq(v);
|
||||
const struct blk_mq_ops *const mq_ops = rq->q->mq_ops;
|
||||
const unsigned int op = rq->cmd_flags & REQ_OP_MASK;
|
||||
|
||||
@@ -291,6 +290,12 @@ int blk_mq_debugfs_rq_show(struct seq_file *m, void *v)
|
||||
seq_puts(m, "}\n");
|
||||
return 0;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(__blk_mq_debugfs_rq_show);
|
||||
|
||||
int blk_mq_debugfs_rq_show(struct seq_file *m, void *v)
|
||||
{
|
||||
return __blk_mq_debugfs_rq_show(m, list_entry_rq(v));
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(blk_mq_debugfs_rq_show);
|
||||
|
||||
static void *hctx_dispatch_start(struct seq_file *m, loff_t *pos)
|
||||
|
||||
Reference in New Issue
Block a user