Re: [PATCH] Preemption Latency Measurement Tool

Andrea Arcangeli
2001-09-20T06:41:54Z

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