block: respect BLK_MQ_F_NO_SCHED
authorMing Lei <ming.lei@redhat.com>
Sat, 15 Apr 2017 12:38:22 +0000 (20:38 +0800)
committerJens Axboe <axboe@fb.com>
Wed, 19 Apr 2017 20:15:43 +0000 (14:15 -0600)
commit3a5088c8c11ac9d56f7e90acaaae9e0e98c1ff94
treeea83e5447676e30b767103c665668932656c239b
parent005882e53d62f25dae10351a8d3f13326051e8f5
block: respect BLK_MQ_F_NO_SCHED

If one driver claims that it doesn't support io scheduler via
BLK_MQ_F_NO_SCHED, we should not allow to change and show the
availabe io schedulers.

This patch adds check to enhance this behaviour.

Signed-off-by: Ming Lei <ming.lei@redhat.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
block/elevator.c