xfs: bump up reserved blocks in xfs_alloc_set_aside
authorChristoph Hellwig <hch@lst.de>
Mon, 9 Jan 2017 21:36:30 +0000 (13:36 -0800)
committerDarrick J. Wong <darrick.wong@oracle.com>
Mon, 9 Jan 2017 21:35:00 +0000 (13:35 -0800)
commit5149fd327f16e393c1d04fa5325ab072c32472bf
tree8b84371ccc0ad6fe0e220c20ad16e695caf6f6a9
parenta121103c922847ba5010819a3f250f1f7fc84ab8
xfs: bump up reserved blocks in xfs_alloc_set_aside

Setting aside 4 blocks globally for bmbt splits isn't all that useful,
as different threads can allocate space in parallel.  Bump it to 4
blocks per AG to allow each thread that is currently doing an
allocation to dip into it separately.  Without that we may no have
enough reserved blocks if there are enough parallel transactions
in an almost out space file system that all run into bmap btree
splits.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Brian Foster <bfoster@redhat.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/xfs/libxfs/xfs_alloc.c