From: Christoph Hellwig Date: Thu, 14 Nov 2013 16:50:34 +0000 (-0800) Subject: nfs: page cache invalidation for dio X-Git-Tag: v3.14-rc1~77^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9ab5e840669b19aca2974e2c771a77df2876434;p=pandora-kernel.git nfs: page cache invalidation for dio Make sure to properly invalidate the pagecache before performing direct I/O, so that no stale pages are left around. This matches what the generic direct I/O code does. Also take the i_mutex over the direct write submission to avoid the lifelock vs truncate waiting for i_dio_count to decrease, and to avoid having the pagecache easily repopulated while direct I/O is in progrss. Again matching the generic direct I/O code. Signed-off-by: Christoph Hellwig Signed-off-by: Trond Myklebust --- Reading git-diff-tree failed