Peng Tao ee8a1a8b16 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>
2015-01-21 17:10:08 -05:00
..
2013-06-08 16:20:18 -04:00
2014-12-08 20:39:29 -05:00
2014-11-25 16:38:32 -05:00
2013-11-15 13:41:43 -05:00
2014-09-30 16:24:56 -04:00
2012-07-30 19:06:41 -04:00
2014-11-25 16:38:32 -05:00
2014-11-25 16:38:32 -05:00
2014-11-25 16:38:32 -05:00
2014-11-25 16:38:32 -05:00
2014-11-25 16:38:32 -05:00
2012-07-30 19:06:52 -04:00
2014-06-24 18:47:00 -04:00