On 05/04/2017 09:31 AM, Omar Sandoval wrote: > From: Omar Sandoval <osandov@xxxxxx> > > A large part of blk-mq-debugfs.c is file_operations and seq_file > boilerplate. This sucks as is but will suck even more when schedulers > can define their own debugfs entries. Factor it all out into a single > blk_mq_debugfs_fops which multiplexes as needed. We store the > request_queue, blk_mq_hw_ctx, or blk_mq_ctx in the parent directory > dentry, which is kind of hacky, but it works. > > Signed-off-by: Omar Sandoval <osandov@xxxxxx> > --- > block/blk-mq-debugfs.c | 464 +++++++++++++++---------------------------------- > 1 file changed, 136 insertions(+), 328 deletions(-) > Reviewed-by: Hannes Reinecke <hare@xxxxxxxx> Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking hare@xxxxxxx +49 911 74053 688 SUSE LINUX GmbH, Maxfeldstr. 5, 90409 Nürnberg GF: F. Imendörffer, J. Smithard, J. Guild, D. Upmanyu, G. Norton HRB 21284 (AG Nürnberg)