]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7bac8341c31fd4130be5b9cdd1ade39b7b6b18d2
treeea83e5447676e30b767103c665668932656c239b
parent82d5087f442615e9df0dc7179c7b4344a810d160
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