diff options
author | Christoph Hellwig <hch@infradead.org> | 2013-11-14 08:50:34 -0800 |
---|---|---|
committer | Trond Myklebust <trond.myklebust@primarydata.com> | 2014-01-13 17:29:50 -0500 |
commit | a9ab5e840669b19aca2974e2c771a77df2876434 (patch) | |
tree | 15616935d9d15765dfa121c347196f8de1f25ea3 /tools/perf/util/trace-event-scripting.c | |
parent | d0b9875d65c1abcc9d405d648660dfb919353959 (diff) |
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>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions