Re: Linux v2.5.43

From: John Levon (levon@movementarian.org)
Date: Wed Oct 16 2002 - 09:57:28 EST


On Tue, Oct 15, 2002 at 08:44:10PM -0700, Linus Torvalds wrote:

> John Levon <levon@movementarian.org>:
> o oprofile - core

Note that anybody actually wanting to use the thing needs an additional
fix like the below, or most of the samples end up being dropped on the
floor.

Matthew, can we submit the proper fix (using cond_resched ?) at some
point ?

thanks
john

--- linux-linus/fs/locks.c Sat Sep 28 15:56:28 2002
+++ linux/fs/locks.c Wed Oct 2 04:15:54 2002
@@ -727,11 +727,11 @@
         }
         unlock_kernel();
 
- if (found)
- yield();
-
         if (new_fl->fl_type == F_UNLCK)
                 return 0;
+
+ if (found)
+ yield();
 
         lock_kernel();
         for_each_lock(inode, before) {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Wed Oct 23 2002 - 22:00:28 EST