Date: Fri Jun 14 11:03:36 PDT 2002
The following file(s) were checked into:
linux/fs/xfs/xfs_alloc.c - 1.152
- add an extra last pass to the allocation group scan to squeeze the
few blocks out of the disk.
linux/fs/xfs/linux/xfs_lrw.c - 1.148
- when out of space, flush the log as well as the delalloc buffers
We came across an end case on linux where a filesystem had a few blocks
free and was continually spinning in the strategy path attempting to
allocate space for a delalloc block.
xfs_alloc_vextent is responsible for locating an allocation group
for the space. In the case where a specific allocation group has been
requested, the restriction on leaving some blocks free in the ag
is lifted by this function:
args->minleft = 0;
In the case where we are scanning all allocation groups for space, we never
do that. I propose adding a third pass to the loop which scans the ags for
space. In this third pass we would drop the minleft parameter down to zero
which would allow us to extract blocks from the agfl to satisfy the request.
Steve Lord voice: +1-651-683-3511
Principal Engineer, Filesystem Software email: lord@xxxxxxx