summaryrefslogtreecommitdiffstats
path: root/fs/select.c
diff options
context:
space:
mode:
authorPeng Tao <tao.peng@primarydata.com>2015-01-20 00:44:29 +0100
committerTrond Myklebust <trond.myklebust@primarydata.com>2015-01-21 23:10:08 +0100
commitee8a1a8b160a87dc3a9c81a86796aa4db85ea815 (patch)
tree2e79c30b8263d64614e392708d1cadee09014638 /fs/select.c
parentLinux 3.19-rc5 (diff)
downloadlinux-ee8a1a8b160a87dc3a9c81a86796aa4db85ea815.tar.xz
linux-ee8a1a8b160a87dc3a9c81a86796aa4db85ea815.zip
nfs: fix dio deadlock when O_DIRECT flag is flipped
We only support swap file calling nfs_direct_IO. However, application might be able to get to nfs_direct_IO if it toggles O_DIRECT flag during IO and it can deadlock because we grab inode->i_mutex in nfs_file_direct_write(). So return 0 for such case. Then the generic layer will fall back to buffer IO. Signed-off-by: Peng Tao <tao.peng@primarydata.com> Cc: stable@vger.kernel.org Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com>
Diffstat (limited to 'fs/select.c')
0 files changed, 0 insertions, 0 deletions