Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19082
b: refs/heads/master
c: 248d5ca
h: refs/heads/master
v: v3
  • Loading branch information
Nate Diller authored and Jens Axboe committed Jan 24, 2006
1 parent e3d126b commit 79c2a3f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5f00397644e01adfbebafb5d0ebc01eba522709d
refs/heads/master: 248d5ca5ed5feb7f1a68d213c0ff89c604a97179
10 changes: 6 additions & 4 deletions trunk/block/elevator.c
Original file line number Diff line number Diff line change
Expand Up @@ -168,10 +168,12 @@ int elevator_init(request_queue_t *q, char *name)
if (name && !(e = elevator_get(name)))
return -EINVAL;

if (!e && !(e = elevator_get(chosen_elevator))) {
e = elevator_get(CONFIG_DEFAULT_IOSCHED);
if (*chosen_elevator)
printk("I/O scheduler %s not found\n", chosen_elevator);
if (!e && *chosen_elevator && !(e = elevator_get(chosen_elevator)))
printk("I/O scheduler %s not found\n", chosen_elevator);

if (!e && !(e = elevator_get(CONFIG_DEFAULT_IOSCHED))) {
printk("Default I/O scheduler not found, using no-op\n");
e = elevator_get("noop");
}

eq = kmalloc(sizeof(struct elevator_queue), GFP_KERNEL);
Expand Down

0 comments on commit 79c2a3f

Please sign in to comment.