Whamcloud - gitweb
LU-17115 quota: fix race of acquiring locks in qmt
authorHongchao Zhang <hongchao@whamcloud.com>
Thu, 26 Oct 2023 12:46:44 +0000 (20:46 +0800)
committerAndreas Dilger <adilger@whamcloud.com>
Fri, 24 Nov 2023 09:25:37 +0000 (09:25 +0000)
commit7670c1f0da3b0474895625708cd2953d2d4a8f3c
tree997f6a829f86b4a95b6ca9613d544bd2ea8288fd
parenta2e4fab07bc0412d593eebf3d8ce9d48687f6d56
LU-17115 quota: fix race of acquiring locks in qmt

In qmt_delete_qid and qmt_reset_qid, the order to require
the lock of lquota_entry and journal is different from that
in qmt_dqacq0, which could cause deadlock in some cases.

Lustre-change: https://review.whamcloud.com/52371
Lustre-commit: ee0e9447e7022e2caa8b161657d505e17ccdc4a1

Signed-off-by: Hongchao Zhang <hongchao@whamcloud.com>
Change-Id: Ic439f2c5d6ca22429422b87f0dde65e0d2e6113d
Reviewed-by: Sergey Cheremencev <scherementsev@ddn.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/53047
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/quota/qmt_handler.c