linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@zip.com.au>
To: Dave Jones <davej@suse.de>, Linus Torvalds <torvalds@transmeta.com>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: [patch] fix loop deadlock
Date: Sat, 30 Mar 2002 21:31:31 -0800	[thread overview]
Message-ID: <3CA69F33.90B37E83@zip.com.au> (raw)

2.5 is missing a chunk from 2.4

--- 2.5.7/fs/buffer.c~loop-deadlock	Sat Mar 30 21:18:13 2002
+++ 2.5.7-akpm/fs/buffer.c	Sat Mar 30 21:18:22 2002
@@ -992,7 +992,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;
 	}


>From an efficiency POV loop is looking rather hilarious:

c013da84 kmem_cache_alloc                             30   0.0355
c0239bc0 __make_request                               41   0.0321
c02457e0 transfer_none                                90   1.2500
c0148480 create_bounce                               171   0.2007
c0138a00 generic_file_write                          305   0.1540
c014d558 write_some_buffers                        10028  28.4886
c0151db5 .text.lock.buffer                         29229  47.2197
00000000 total                                     40308   0.0195

Probably we can fix this using the BH_Launder bit from
Andrea's kit.

-

                 reply	other threads:[~2002-03-31  5:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3CA69F33.90B37E83@zip.com.au \
    --to=akpm@zip.com.au \
    --cc=davej@suse.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).