summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Morton <akpm@zip.com.au>2002-04-05 03:46:26 -0800
committerAndy Grover <agrover@acpi3.(none)>2002-04-05 03:46:26 -0800
commitcbba4f5ef5c3298451d51aca1b74ad0040ff9c5a (patch)
treea943c18a5a77378180079fc102a026a3cdb2e203
parente28fa96fdfe1adf561815cd73ac55722bf275c39 (diff)
[PATCH] loop deadlock fix
This chunk is present in 2.4, missing in 2.5. It stops the loop thread from waiting on its owm buffers.
-rw-r--r--fs/buffer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/buffer.c b/fs/buffer.c
index 784ae1957aca..8b8f44fd71da 100644
--- a/fs/buffer.c
+++ b/fs/buffer.c
@@ -995,7 +995,7 @@ static int balance_dirty_state(void)
/* First, check for the "real" dirty limit. */
if (dirty > soft_dirty_limit) {
- if (dirty > hard_dirty_limit)
+ if (dirty > hard_dirty_limit && !(current->flags & PF_NOIO))
return 1;
return 0;
}