]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_repair: coordinate parallel updates to the rt bitmap
authorDarrick J. Wong <darrick.wong@oracle.com>
Mon, 12 Oct 2020 19:40:01 +0000 (15:40 -0400)
committerEric Sandeen <sandeen@sandeen.net>
Mon, 12 Oct 2020 19:40:01 +0000 (15:40 -0400)
commit86b8934dad47ba194e5179c96b0b8004aea8220d
tree5f5c769b8d66791afb9a7cb158b58ad02b789798
parent2b9857cdb566359cf48d277c5b841cb102c7cbd2
xfs_repair: coordinate parallel updates to the rt bitmap

Actually take the rt lock before updating the bitmap from multiple
threads.  This fixes an infrequent corruption problem when running
generic/013 and rtinherit=1 is set on the root dir.

Fixes: 2556c98bd9e6 ("Perform true sequential bulk read prefetching in xfs_repair Merge of master-melb:xfs-cmds:29147a by kenmcd.")
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
repair/dinode.c
repair/globals.c
repair/globals.h
repair/incore.c