Re: [PATCH] Preemption Latency Measurement Tool

Andrea Arcangeli (andrea@suse.de)
Thu, 20 Sep 2001 08:41:31 +0200


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/