Whamcloud - gitweb
e2fsck: serialize fix operations
authorWang Shilong <wshilong@ddn.com>
Fri, 6 Mar 2020 08:46:47 +0000 (16:46 +0800)
committerLi Dongyang <dongyangli@ddn.com>
Thu, 8 Apr 2021 00:54:32 +0000 (10:54 +1000)
commit39b4fd81575465e80b8e72f0c3ca3be95aae7bb6
tree77cd979ff1389816bc2918b83f61a1b80fc1973c
parent2095266db8e4735e68079ac33cc6621fb47bf468
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.

E2fsprogs-commit: 5485120b668c952b6e83f24a1e1a74eaa7bf362e

Change-Id: Iedb64545240cc9325dc0c4ce737a970b27f4f3f6
Signed-off-by: Wang Shilong <wshilong@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Signed-off-by: Saranya Muruganandam <saranyamohan@google.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
e2fsck/e2fsck.h
e2fsck/pass1.c
e2fsck/util.c