xfs: reinstate the ilock in xfs_readdir
authorBen Myers <bpm@sgi.com>
Fri, 6 Dec 2013 20:30:11 +0000 (12:30 -0800)
committerBen Myers <bpm@sgi.com>
Wed, 18 Dec 2013 21:52:36 +0000 (15:52 -0600)
commit40194ecc6d78327d98e66de3213db96ca0a31e6f
treeaee54569d5f12b96146822791a1ca1d27f62e2ed
parentefa70be165497826f674846f681e6e2364af906c
xfs: reinstate the ilock in xfs_readdir

Although it was removed in commit 051e7cd44ab8, 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: Ben Myers <bpm@sgi.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
fs/xfs/xfs_dir2_readdir.c
This page took 0.035092 seconds and 5 git commands to generate.