From: Matthew Wilcox <willy@debian.org>
To: John Levon <levon@movementarian.org>,
Linus Torvalds <torvalds@transmeta.com>
Cc: Kernel Mailing List <linux-kernel@vger.kernel.org>,
willy@debian.org, akpm@digeo.com
Subject: Re: Linux v2.5.43
Date: Wed, 16 Oct 2002 16:02:42 +0100 [thread overview]
Message-ID: <20021016160242.H15163@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <20021016145728.GA78571@compsoc.man.ac.uk>; from levon@movementarian.org on Wed, Oct 16, 2002 at 03:57:28PM +0100
On Wed, Oct 16, 2002 at 03:57:28PM +0100, John Levon wrote:
> Matthew, can we submit the proper fix (using cond_resched ?) at some
> point ?
yes, i have the proper fix in my tree, along with some other changes I
want to make. Here's the better patch:
diff -urpNX dontdiff linux-2.5.43/fs/locks.c linux-2.5.43-flock/fs/locks.c
--- linux-2.5.43/fs/locks.c 2002-09-27 20:10:43.000000000 -0700
+++ linux-2.5.43-flock/fs/locks.c 2002-10-10 18:03:10.000000000 -0700
@@ -727,12 +726,16 @@ static int flock_lock_file(struct file *
}
unlock_kernel();
- if (found)
- yield();
-
if (new_fl->fl_type == F_UNLCK)
return 0;
+ /*
+ * If a higher-priority process was blocked on the old file lock,
+ * give it the opportunity to lock the file.
+ */
+ if (found)
+ cond_resched();
+
lock_kernel();
for_each_lock(inode, before) {
struct file_lock *fl = *before;
--
Revolutions do not require corporate support.
next prev parent reply other threads:[~2002-10-16 14:56 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-16 3:44 Linus Torvalds
2002-10-16 4:41 ` Andrew Morton
2002-10-16 4:48 ` Andrew Morton
2002-10-16 7:01 ` Martin J. Bligh
2002-10-16 17:41 ` Martin J. Bligh
2002-10-17 0:10 ` Thomas Molina
2002-10-16 7:28 ` Adrian Bunk
2002-10-16 8:25 ` Linux v2.5.43 nfs fails to boot, fix george anzinger
2002-10-16 7:31 ` Linux v2.5.43 Jens Axboe
2002-10-16 12:05 ` Ben Collins
2002-10-16 12:09 ` Jens Axboe
2002-10-16 12:16 ` Ben Collins
2002-10-16 12:17 ` Jens Axboe
2002-10-16 12:22 ` Ben Collins
2002-10-16 12:25 ` Jens Axboe
2002-10-16 12:18 ` jlnance
2002-10-16 12:27 ` Ben Collins
2002-10-16 22:48 ` jbradford
2002-10-16 12:01 ` v2.5.43 patch: fix device_suspend() please apply Eric Blade
2002-10-16 14:57 ` Linux v2.5.43 John Levon
2002-10-16 15:02 ` Matthew Wilcox [this message]
2002-10-16 21:05 ` Bill Davidsen
2002-10-16 21:35 ` Shawn
2002-10-16 21:48 ` Linus Torvalds
2002-10-17 13:14 ` Bill Davidsen
2002-10-18 19:34 ` Bill Davidsen
2002-10-19 17:43 ` bill davidsen
2002-10-18 7:08 ` Andres Salomon
2002-10-18 7:02 ` David S. Miller
2002-10-18 17:00 ` Adrian Bunk
2002-10-18 17:03 ` Ben Collins
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=20021016160242.H15163@parcelfarce.linux.theplanet.co.uk \
--to=willy@debian.org \
--cc=akpm@digeo.com \
--cc=levon@movementarian.org \
--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
all inboxes | Powered by JetHome®