• Ben Myers's avatar
    xfs: reinstate the ilock in xfs_readdir · 40194ecc
    Ben Myers authored
    Although it was removed in commit 051e7cd4, ilock needs to be taken in
    xfs_readdir because we might have to read the extent list in from disk.  This
    keeps other threads from reading from or writing to the extent list while it is
    being read in and is still in a transitional state.
    
    This has been associated with "Access to block zero" messages on directories
    with large numbers of extents resulting from excessive filesytem fragmentation,
    as well as extent list corruption.  Unfortunately no test case at this point.
    Signed-off-by: default avatarBen Myers <bpm@sgi.com>
    Reviewed-by: default avatarDave Chinner <dchinner@redhat.com>
    40194ecc
xfs_dir2_readdir.c 18.1 KB