elevator: printk a warning if switching to a new io scheduler fails
authorJinlong Chen <nickyc975@zju.edu.cn>
Tue, 22 Nov 2022 14:21:24 +0000 (22:21 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 23 Nov 2022 13:48:08 +0000 (06:48 -0700)
commite0cca8bc9cd8d6176921cb3f5f466d3ccfbc6b99
treedea3c5eaf51c93df9492117fafb1200a824ea730
parentac1171bd2c7a3a32dfbdd3c347919fee32b745a1
elevator: printk a warning if switching to a new io scheduler fails

printk a warning to indicate that the io scheduler has been set to none
if switching to a new io scheduler fails.

Suggested-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jinlong Chen <nickyc975@zju.edu.cn>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/d51ed0fb457db7a4f9cbb0dbce36d534e22be457.1669126766.git.nickyc975@zju.edu.cn
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/elevator.c