From: Theodore Ts'o Date: Tue, 7 Apr 2009 22:12:43 +0000 (-0400) Subject: block_write_full_page: switch synchronous writes to use WRITE_SYNC_PLUG X-Git-Tag: v2.6.30-rc2~111^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e34eeddf7deec1444bbddab533f03f520d8458c;p=pandora-kernel.git block_write_full_page: switch synchronous writes to use WRITE_SYNC_PLUG Now that we have a distinction between WRITE_SYNC and WRITE_SYNC_PLUG, use WRITE_SYNC_PLUG in __block_write_full_page() to avoid unplugging the block device I/O queue between each page that gets flushed out. Otherwise, when we run sync() or fsync() and we need to write out a large number of pages, the block device queue will get unplugged between for every page that is flushed out, which will be a pretty serious performance regression caused by commit a64c8610. Signed-off-by: "Theodore Ts'o" --- Reading git-diff-tree failed