Re: 2.6.13-rc1 problems

From: Andrew Morton
Date: Wed Jun 29 2005 - 14:06:55 EST


Toufeeq Hussain <toufeeqh@xxxxxxxxx> wrote:
>
> After upgrading to 2.6.13-rc1 my system crashes after running for around
> 10 minutes.

Try this:

--- 25/drivers/block/ll_rw_blk.c~get_request-nastiness 2005-06-29 09:36:27.000000000 -0700
+++ 25-akpm/drivers/block/ll_rw_blk.c 2005-06-29 09:36:27.000000000 -0700
@@ -1918,10 +1918,9 @@ get_rq:
* limit of requests, otherwise we could have thousands of requests
* allocated with any setting of ->nr_requests
*/
- if (rl->count[rw] >= (3 * q->nr_requests / 2)) {
- spin_unlock_irq(q->queue_lock);
+ if (rl->count[rw] >= (3 * q->nr_requests / 2))
goto out;
- }
+
rl->count[rw]++;
rl->starved[rw] = 0;
if (rl->count[rw] >= queue_congestion_on_threshold(q))
_

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/