Thanks, could you try with this patch? It's not a fix (haven't found the
bug yet), but I think we are looking at list corruption so please check
if this patch at least alters when it hangs etc.
--- /opt/kernel/linux-2.5.2-pre3/drivers/block/elevator.c Sat Dec 29 12:17:53 2001
+++ drivers/block/elevator.c Sat Dec 29 12:30:20 2001
@@ -142,7 +142,7 @@
int elevator_linus_merge(request_queue_t *q, struct request **req,
struct bio *bio)
{
- struct list_head *entry;
+ struct list_head *entry, *head = &q->queue_head;
struct request *__rq;
int ret;
@@ -160,17 +160,22 @@
}
}
+ if ((__rq = __elv_next_request(q)))
+ if (__rq->flags & REQ_STARTED)
+ head = head->next;
+
entry = &q->queue_head;
ret = ELEVATOR_NO_MERGE;
- while ((entry = entry->prev) != &q->queue_head) {
+ while ((entry = entry->prev) != head) {
__rq = list_entry_rq(entry);
+ if (__rq->flags & (REQ_BARRIER | REQ_STARTED))
+ break;
+
/*
* simply "aging" of requests in queue
*/
if (__rq->elevator_sequence-- <= 0)
- break;
- if (__rq->flags & (REQ_BARRIER | REQ_STARTED))
break;
if (!(__rq->flags & REQ_CMD))
continue;
-- Jens Axboe- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/