]> 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)
commit41c3674035010a3a0d947b7ccc56328b3d08cffb
treeea83e5447676e30b767103c665668932656c239b
parent98465176d4e18eb816030672619609cc29a1da8c
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