Re: [RFC][DATA] re "ongoing vm suckage"

Mark Hemment (markhe@veritas.com)
Sat, 4 Aug 2001 17:21:16 +0100 (BST)


On Fri, 3 Aug 2001, Linus Torvalds wrote:
> Well, I've made a 2.4.8-pre4.

A colleague has reminded me that we this small patch against
flush_dirty_buffers() - kick the disk queues before sleeping.

Mark

--- linux-2.4.8-pre4/fs/buffer.c Sat Aug 4 11:49:52 2001
+++ linux/fs/buffer.c Sat Aug 4 11:56:25 2001
@@ -2568,8 +2568,11 @@
ll_rw_block(WRITE, 1, &bh);
put_bh(bh);

- if (current->need_resched)
+ if (current->need_resched) {
+ /* kick what we've already pushed down */
+ run_task_queue(&tq_disk);
schedule();
+ }
goto restart;
}
out_unlock:

-
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/