Whamcloud - gitweb
EX-4270 snapshot: avoid call quota op recursively
authorHongchao Zhang <hongchao@whamcloud.com>
Tue, 30 Nov 2021 10:11:01 +0000 (18:11 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 14 Jan 2022 06:07:58 +0000 (06:07 +0000)
commitf29d42f4eb0e55c660590c71162541aac4fd8c01
treeec8ba3247a6f7f81a0d395013886a3b9ea4613a8
parentd37d95ce403c12460428d526d7d1b24e91ce2c22
EX-4270 snapshot: avoid call quota op recursively

In ext4_snapshot_test_and_cow, if there is already in some quota
call, it could cause deadlock if the snapshot calls quota function
to allocate space recursively.

[only the change to snapshot-jbd2-rhel7.7.patch]

Lustre-change: https://review.whamcloud.com/45680
Lustre-commit: 4722f1a0ca9d24bf6fa2678659ccf2cb1be5cdf1

Test-Parameters: trivial
Change-Id: Iac354744fcee8955d8e41020f9cee6d433f38e80
Signed-off-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-by: Li Dongyang <dongyangli@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/46009
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Li Xi <lixi@ddn.com>
lustre/kernel_patches/patches/snapshot-jbd2-rhel7.7.patch