commit | 0522f6adedd2736cbca3c0e16ca51df668993eee | [log] [tgz] |
---|---|---|
author | Trond Myklebust <Trond.Myklebust@netapp.com> | Wed May 26 08:42:24 2010 -0400 |
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | Wed May 26 08:43:53 2010 -0400 |
tree | 36ff5ee208fa97cf86b717ed0eb2e9ca4251315d | |
parent | c5efa5fc91f1f6d1d47e65f39e7ec6d1157c777d [diff] |
NFS: Fix another nfs_wb_page() deadlock J.R. Okajima reports that the call to sync_inode() in nfs_wb_page() can deadlock with other writeback flush calls. It boils down to the fact that we cannot ever call writeback_single_inode() while holding a page lock (even if we do set nr_to_write to zero) since another process may already be waiting in the call to do_writepages(), and so will deny us the I_SYNC lock. Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>