diff options
author | 2013-11-14 08:50:34 -0800 | |
---|---|---|
committer | 2014-01-13 17:29:50 -0500 | |
commit | a9ab5e840669b19aca2974e2c771a77df2876434 (patch) | |
tree | 15616935d9d15765dfa121c347196f8de1f25ea3 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | nfs: take i_mutex during direct I/O reads (diff) | |
download | linux-dev-a9ab5e840669b19aca2974e2c771a77df2876434.tar.xz linux-dev-a9ab5e840669b19aca2974e2c771a77df2876434.zip |
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/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions