Преглед на файлове

[BLOCK] elevator: if specified scheduler is not found, fall back to default

Signed-off-by: Jens Axboe <axboe@suse.de>
Jens Axboe преди 19 години
родител
ревизия
b7bfcf7cbd
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. 2 2
      block/elevator.c

+ 2 - 2
block/elevator.c

@@ -157,12 +157,12 @@ static void elevator_setup_default(void)
 		strcpy(chosen_elevator, "anticipatory");
 		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)))
  	if ((e = elevator_find(chosen_elevator)))
 		elevator_put(e);
 		elevator_put(e);
 	else
 	else
- 		strcpy(chosen_elevator, "noop");
+ 		strcpy(chosen_elevator, CONFIG_DEFAULT_IOSCHED);
 }
 }
 
 
 static int __init elevator_setup(char *str)
 static int __init elevator_setup(char *str)