Darrick J. Wong 3ecb3ac7b9 xfs: avoid mount-time deadlock in CoW extent recovery
If a malicious user corrupts the refcount btree to cause a cycle between
different levels of the tree, the next mount attempt will deadlock in
the CoW recovery routine while grabbing buffer locks.  We can use the
ability to re-grab a buffer that was previous locked to a transaction to
avoid deadlocks, so do that here.

Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Brian Foster <bfoster@redhat.com>
2017-05-19 08:12:49 -07:00
..
2017-04-03 15:18:17 -07:00
2013-05-07 18:45:36 -05:00
2012-11-19 20:11:24 -06:00
2017-05-06 11:46:16 -07:00
2016-11-30 14:37:15 +11:00
2016-10-04 11:05:44 -07:00
2017-05-06 11:46:16 -07:00
2017-02-27 18:43:46 -08:00
2017-04-03 15:18:17 -07:00
2017-05-06 11:46:16 -07:00
2013-05-07 18:45:36 -05:00
2017-04-25 09:40:41 -07:00
2017-04-03 15:18:17 -07:00
2017-05-06 11:46:16 -07:00
2013-05-07 18:45:36 -05:00