]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
elevator: fix loading wrong elevator type for blk-mq devices
authorJens Axboe <axboe@fb.com>
Tue, 14 Feb 2017 15:16:41 +0000 (08:16 -0700)
committerJens Axboe <axboe@fb.com>
Tue, 14 Feb 2017 15:16:41 +0000 (08:16 -0700)
commitd1a987f35ebf859a771ac530e95a89933b6fcce8
tree15b2ba0c3125623a5b2ed4fb48a5090ca58a6a1b
parentc5c9b26ee5f1295c77d8f2ff5f804ed6c0b07cc4
elevator: fix loading wrong elevator type for blk-mq devices

The old elevator= boot parameter blindly attempts to load the
same scheduler for mq and !mq devices, leading to a crash if
we specify the wrong one.

Ensure that we only apply this boot parameter to old !mq devices.

Signed-off-by: Jens Axboe <axboe@fb.com>
block/elevator.c