All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] elv_former_request reversion
@ 2003-02-16  0:12 Andrew Morton
  2003-02-16  9:32 ` Jens Axboe
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Morton @ 2003-02-16  0:12 UTC (permalink / raw)
  To: Jens Axboe, Anton Blanchard, Linus Torvalds; +Cc: linux-kernel


This morning's fix for elv_former_request() is causing oopses all over the
place in the IO scheduler.

Jens, remember that I did try that fix a while ago, and the same happened.

I believe it has exposed a new problem at the __make_request/attempt_front_merge
level: if attempt_front_merge() actually succeeds, the wrong request gets freed
up in elv_merged_request().

It may be best to back this change out until it can be fixed up for real.


diff -puN drivers/block/elevator.c~deadline-hack drivers/block/elevator.c
--- 25/drivers/block/elevator.c~deadline-hack	2003-02-15 15:56:56.000000000 -0800
+++ 25-akpm/drivers/block/elevator.c	2003-02-15 15:57:09.000000000 -0800
@@ -399,7 +399,7 @@ struct request *elv_former_request(reque
 	elevator_t *e = &q->elevator;
 
 	if (e->elevator_former_req_fn)
-		return e->elevator_former_req_fn(q, rq);
+		return e->elevator_latter_req_fn(q, rq);
 
 	prev = rq->queuelist.prev;
 	if (prev != &q->queue_head && prev != &rq->queuelist)

_


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-02-16 12:44 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-02-16  0:12 [patch] elv_former_request reversion Andrew Morton
2003-02-16  9:32 ` Jens Axboe
2003-02-16 11:59   ` Jens Axboe
2003-02-16 12:29     ` Andrew Morton
2003-02-16 12:53     ` Anton Blanchard

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.