Whamcloud - gitweb
LU-16097 quota: release preacquired quota when over limits
authorHongchao Zhang <hongchao@whamcloud.com>
Thu, 19 Oct 2023 06:33:47 +0000 (14:33 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 24 Nov 2023 09:25:29 +0000 (09:25 +0000)
commita2e4fab07bc0412d593eebf3d8ce9d48687f6d56
tree66223b5555f5c993c865dc4dfe884a50bea1f856
parent73f0a3b1ee5e57249adb8e0d3f71ee35dc044fbd
LU-16097 quota: release preacquired quota when over limits

The pre-acquired quota on each MDT or OST should be released when
the whole quota is over limits, for instance, after the quota limits
had been decreased for some quota ID by Administrator.

Lustre-change: https://review.whamcloud.com/48576
Lustre-commit: 57ac32a22372065b789ca491a568f075e755d339

Test-Parameters: testlist=sanity-quota
Test-Parameters: testlist=sanity-quota
Signed-off-by: Hongchao Zhang <hongchao@whamcloud.com>
Change-Id: I6263b835d4ae6a3fd03f9a2bc4f463949cbc74d4
Reviewed-by: Alexander Boyko <alexander.boyko@hpe.com>
Reviewed-by: Sergey Cheremencev <scherementsev@ddn.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53070
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/include/uapi/linux/lustre/lustre_user.h
lustre/quota/lquota_internal.h
lustre/quota/qmt_lock.c
lustre/quota/qsd_entry.c
lustre/quota/qsd_handler.c
lustre/quota/qsd_lock.c
lustre/quota/qsd_writeback.c
lustre/tests/sanity-quota.sh