]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs: fix multi-AG deadlock in xfs_bunmapi
authorChristoph Hellwig <hch@lst.de>
Mon, 31 Jul 2017 20:08:13 +0000 (15:08 -0500)
committerEric Sandeen <sandeen@redhat.com>
Mon, 31 Jul 2017 20:08:13 +0000 (15:08 -0500)
commit15a8bccc9403c0ab1dbe869aa3afce7be9e1dd49
tree387f9b5918dcebac973f995cce88e710a04daf36
parentf9f5e90c212052f896cc2ffbbb062498dd026b1a
xfs: fix multi-AG deadlock in xfs_bunmapi

Source kernel commit: 5b094d6dac0451ad89b1dc088395c7b399b7e9e8

Just like in the allocator we must avoid touching multiple AGs out of
order when freeing blocks, as freeing still locks the AGF and can cause
the same AB-BA deadlocks as in the allocation path.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reported-by: Nikolay Borisov <n.borisov.lkml@gmail.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
libxfs/xfs_bmap.c