nfs: page cache invalidation for dio
authorChristoph Hellwig <hch@infradead.org>
Thu, 14 Nov 2013 16:50:34 +0000 (08:50 -0800)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 13 Jan 2014 22:29:50 +0000 (17:29 -0500)
commita9ab5e840669b19aca2974e2c771a77df2876434
tree15616935d9d15765dfa121c347196f8de1f25ea3
parentd0b9875d65c1abcc9d405d648660dfb919353959
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 <hch@lst.de>
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
fs/nfs/direct.c
This page took 0.032717 seconds and 5 git commands to generate.