aboutsummaryrefslogtreecommitdiffstats
path: root/block
diff options
context:
space:
mode:
authorJens Axboe <axboe@suse.de>2006-01-16 03:48:58 -0500
committerJens Axboe <axboe@suse.de>2006-01-16 03:48:58 -0500
commitb7bfcf7cbd58d2a64aa46f3b4bec921e346e604f (patch)
treee81e63cf1d7af208dc3ea996a417b528a6a8c0e1 /block
parent752a3b79630a290cbbe4731e7c61b75d4fbebc5c (diff)
[BLOCK] elevator: if specified scheduler is not found, fall back to default
Signed-off-by: Jens Axboe <axboe@suse.de>
Diffstat (limited to 'block')
-rw-r--r--block/elevator.c4
1 files changed, 2 insertions, 2 deletions
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)
157 strcpy(chosen_elevator, "anticipatory"); 157 strcpy(chosen_elevator, "anticipatory");
158 158
159 /* 159 /*
160 * If the given scheduler is not available, fall back to no-op. 160 * If the given scheduler is not available, fall back to the default
161 */ 161 */
162 if ((e = elevator_find(chosen_elevator))) 162 if ((e = elevator_find(chosen_elevator)))
163 elevator_put(e); 163 elevator_put(e);
164 else 164 else
165 strcpy(chosen_elevator, "noop"); 165 strcpy(chosen_elevator, CONFIG_DEFAULT_IOSCHED);
166} 166}
167 167
168static int __init elevator_setup(char *str) 168static int __init elevator_setup(char *str)