Re: journal aborted, system read-only

From: Andrew Morton
Date: Tue Sep 21 2004 - 04:57:15 EST


Andrew Morton <akpm@xxxxxxxx> wrote:
>
> This should fix.

scrub that, it hangs. Third time lucky.

--- 25/kernel/wait.c~wait_on_bit-must-loop 2004-09-21 01:57:14.000000000 -0700
+++ 25-akpm/kernel/wait.c 2004-09-21 02:48:18.596420024 -0700
@@ -157,7 +157,7 @@ __wait_on_bit(wait_queue_head_t *wq, str
int ret = 0;

prepare_to_wait(wq, &q->wait, mode);
- if (test_bit(q->key.bit_nr, q->key.flags))
+ while (test_bit(q->key.bit_nr, q->key.flags) && !ret)
ret = (*action)(q->key.flags);
finish_wait(wq, &q->wait);
return ret;
_

-
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/