blk-mq: Export queue state through /sys/kernel/debug/block/*/state
authorBart Van Assche <bart.vanassche@sandisk.com>
Mon, 10 Apr 2017 22:13:15 +0000 (16:13 -0600)
committerJens Axboe <axboe@fb.com>
Mon, 10 Apr 2017 22:13:15 +0000 (16:13 -0600)
commit91d68905aee08a79b9ba82676c834fc670d722a0
treea221f4cbfd674ab1df15338cece2d603914e76b2
parentbcd069bb250acf6088b60d189ab3ec3ae8dd11a5
blk-mq: Export queue state through /sys/kernel/debug/block/*/state

Make it possible to check whether or not a block layer queue has
been stopped. Make it possible to start and to run a blk-mq queue
from user space.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Omar Sandoval <osandov@fb.com>
Cc: Hannes Reinecke <hare@suse.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/blk-mq-debugfs.c