Skip to content

Commit

Permalink
[BLOCK] elevator: if specified scheduler is not found, fall back to d…
Browse files Browse the repository at this point in the history
…efault

Signed-off-by: Jens Axboe <[email protected]>
  • Loading branch information
Jens Axboe committed Jan 16, 2006
1 parent 752a3b7 commit b7bfcf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions block/elevator.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit b7bfcf7

Please sign in to comment.