Skip to contentSkip to conversation

+ elevator-init-fixes.patch added to -mm tree

DISCUSSION Zachary Amsden 2 participants 2 messages Nov 8, 2005 – Nov 9, 2005 1 message not in the archive Block layer

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 9 lines · [email protected] wrote:

The patch titled

Elevator init fixes

has been added to the -mm tree. Its filename is

elevator-init-fixes.patch

In addition to the first patch, which is probably goodness, I found the cause of my panic - applying this patch fixes it and now I am booting.

drivers/block/elevator.c +3 -2
Index: linux-2.6.14/drivers/block/elevator.c
===================================================================
@@ -155,9 +155,10 @@
  	/*
  	 * If the given scheduler is not available, fall back to no-op.
  	 */
- 	if (!(e = elevator_find(chosen_elevator)))
+ 	if ((e = elevator_find(chosen_elevator)))
+		elevator_put(e);
+	else
  		strcpy(chosen_elevator, "noop");
-	elevator_put(e);
 }
 
 static int __init elevator_setup(char *str)
#2 lore raw
Quoted 6 lines · Zachary Amsden
Quoted 4 lines · [email protected] wrote:

The patch titled

Elevator init fixes

Quoted 8 lines
Quoted 5 lines

has been added to the -mm tree. Its filename is

elevator-init-fixes.patch

In addition to the first patch, which is probably goodness, I found the cause of my panic - applying this patch fixes it and now I am booting.

I'm guessing you hit the same problem as Marcelo, not configuring the chosen io scheduler as builtin?

But both patches look fine, I've applied them to the 'for-linus' branch for 2.6.15. Thanks!

Signature · 1 line
Jens Axboe