• Trond Myklebust's avatar
    NFS: Avoid a deadlock situation on write · 7fe7f848
    Trond Myklebust authored
    When processes are allowed to attempt to lock a non-contiguous range of nfs
    write requests, it is possible for generic_writepages to 'wrap round' the
    address space, and call writepage() on a request that is already locked by
    the same process.
    
    We avoid the deadlock by checking if the page index is contiguous with the
    list of nfs write requests that is already held in our
    nfs_pageio_descriptor prior to attempting to lock a new request.
    Signed-off-by: default avatarTrond Myklebust <Trond.Myklebust@netapp.com>
    7fe7f848
pagelist.c 11.2 KB