• T
    NFS: Fix another nfs_wb_page() deadlock · 0522f6ad
    Trond Myklebust 提交于
    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: NTrond Myklebust <Trond.Myklebust@netapp.com>
    0522f6ad
write.c 40.4 KB