• D
    xfs: avoid getting stuck during async inode flushes · ee58abdf
    Dave Chinner 提交于
    When the underlying inode buffer is locked and xfs_sync_inode_attr()
    is doing a non-blocking flush, xfs_iflush() can return EAGAIN.  When
    this happens, clear the error rather than returning it to
    xfs_inode_ag_walk(), as returning EAGAIN will result in the AG walk
    delaying for a short while and trying again. This can result in
    background walks getting stuck on the one AG until inode buffer is
    unlocked by some other means.
    
    This behaviour was noticed when analysing event traces followed by
    code inspection and verification of the fix via further traces.
    Signed-off-by: NDave Chinner <dchinner@redhat.com>
    Reviewed-by: NChristoph Hellwig <hch@lst.de>
    Signed-off-by: NAlex Elder <aelder@sgi.com>
    ee58abdf
xfs_sync.c 28.6 KB