Whamcloud - gitweb
LU-8465 e2fsck: serialize fix operations 26/37826/10
authorWang Shilong <wshilong@ddn.com>
Fri, 6 Mar 2020 08:46:47 +0000 (16:46 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Sat, 26 Sep 2020 04:48:30 +0000 (04:48 +0000)
commitaa67a29fe0ae62f6f15586e0ad159a12786bd252
treebf7b3cd256cccfd3403f884d24af56f6eafc519d
parent0edcac8b4a63d8f469c55f9a0c1842068c98eb08
LU-8465 e2fsck: serialize fix operations

Allow different threads to fix at the same time could
be dangerous and error-prone now, and most of time
parallel scanning and checking is important.

So this patch adds a mutex to serialize
fix operations during pass1.

And the good benefit of this, we don't need block
allocations and free, superblock updates protection
any more, since only fix operations during pass1
could touch them.

Change-Id: Id19a54db86820d7c50e4b84ad10b2e3cb9d1ff2b
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-on: https://review.whamcloud.com/37826
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
e2fsck/e2fsck.h
e2fsck/pass1.c
e2fsck/util.c