commit | d0b9875d65c1abcc9d405d648660dfb919353959 | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@infradead.org> | Thu Nov 14 08:50:33 2013 -0800 |
committer | Trond Myklebust <trond.myklebust@primarydata.com> | Mon Jan 13 17:29:50 2014 -0500 |
tree | c896bd0432fcd79e625f51ab081ef2b21ddadb7e | |
parent | 22cd1bf1480133518b3e5568466759ffde649b35 [diff] |
nfs: take i_mutex during direct I/O reads We'll need the i_mutex to prevent i_dio_count from incrementing while truncate is waiting for it to reach zero, and protects against having the pagecache repopulated after we flushed it. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>