From: Jens Axboe Date: Mon, 16 Jan 2006 08:48:58 +0000 (+0100) Subject: [BLOCK] elevator: if specified scheduler is not found, fall back to default X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b7bfcf7cbd58d2a64aa46f3b4bec921e346e604f;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [BLOCK] elevator: if specified scheduler is not found, fall back to default Signed-off-by: Jens Axboe --- diff --git a/block/elevator.c b/block/elevator.c index e8025b2ec54a..c9f424d5399c 100644 --- a/block/elevator.c +++ b/block/elevator.c @@ -157,12 +157,12 @@ static void elevator_setup_default(void) strcpy(chosen_elevator, "anticipatory"); /* - * If the given scheduler is not available, fall back to no-op. + * If the given scheduler is not available, fall back to the default */ if ((e = elevator_find(chosen_elevator))) elevator_put(e); else - strcpy(chosen_elevator, "noop"); + strcpy(chosen_elevator, CONFIG_DEFAULT_IOSCHED); } static int __init elevator_setup(char *str)