Home
last modified time | relevance | path

Searched hist:a9ab5e840669b19aca2974e2c771a77df2876434 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/fs/nfs/
H A Ddirect.cdiff a9ab5e840669b19aca2974e2c771a77df2876434 Thu Nov 14 10:50:34 CST 2013 Christoph Hellwig <hch@infradead.org> 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>