Re: [PATCH] Preemption Latency Measurement Tool

From: Andrea Arcangeli (andrea@suse.de)
Date: Thu Sep 20 2001 - 01:41:31 EST


Those inodes lines reminded me one thing, you may want to give it a try:

--- 2.4.10pre12aa1/fs/inode.c.~1~ Thu Sep 20 01:44:07 2001
+++ 2.4.10pre12aa1/fs/inode.c Thu Sep 20 08:37:33 2001
@@ -295,6 +295,12 @@
                          * so we have to start looking from the list head.
                          */
                         tmp = head;
+
+ if (unlikely(current->need_resched)) {
+ spin_unlock(&inode_lock);
+ schedule();
+ spin_lock(&inode_lock);
+ }
                 }
         }
 
Andrea
-
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 : Sun Sep 23 2001 - 21:00:36 EST