Whamcloud - gitweb
LU-17115 quota: fix race of acquiring locks in qmt 71/52371/7
authorHongchao Zhang <hongchao@whamcloud.com>
Thu, 26 Oct 2023 12:46:44 +0000 (20:46 +0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 8 Nov 2023 22:02:48 +0000 (22:02 +0000)
commitee0e9447e7022e2caa8b161657d505e17ccdc4a1
treedc56a82515e01b0142fc1ec0cc1e94fc72d76d6e
parentecea24d843f7b2f5fdd5a72fde06eac9237542fc
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.

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