mark_buffer_dirty() is showing up on Anton's graphs. Avoiding the
buslocked RMW if the buffer is already dirty should fix that up.
--- 2.5.22/fs/buffer.c~mark_buffer_dirty-speedup Sun Jun 16 22:50:17 2002
+++ 2.5.22-akpm/fs/buffer.c Sun Jun 16 23:22:47 2002
@@ -1218,7 +1218,7 @@ void mark_buffer_dirty(struct buffer_hea
{
if (!buffer_uptodate(bh))
buffer_error();
- if (!test_set_buffer_dirty(bh))
+ if (!buffer_dirty(bh) && !test_set_buffer_dirty(bh))
__set_page_dirty_nobuffers(bh->b_page);
}
-
-
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 Jun 23 2002 - 22:00:12 EST