]> git.baikalelectronics.ru Git - kernel.git/commit
nfs: take i_mutex during direct I/O reads
authorChristoph Hellwig <hch@infradead.org>
Thu, 14 Nov 2013 16:50:33 +0000 (08:50 -0800)
committerTrond Myklebust <trond.myklebust@primarydata.com>
Mon, 13 Jan 2014 22:29:50 +0000 (17:29 -0500)
commit0ce3bd181d357ad170b8badfc41cf7d4d19dee84
treec896bd0432fcd79e625f51ab081ef2b21ddadb7e
parentbc4b7661a1a234457a327361aba64c494dac1a01
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>
fs/nfs/direct.c