LU-16772 quota: protect lqe_glbl_data in qmt_site_recalc_cb
lqe_glbl_data should be protected with lqe_glbl_data_lock in
qmt_site_reaclc_sb like it did in other places. Otherwise it
may cause following panic:
BUG: unable to handle kernel NULL pointer at
00000000000000f8
qmt_site_recalc_cb+0x2f8/0x790 [lquota]
cfs_hash_for_each_tight+0x121/0x310 [libcfs]
qmt_pool_recalc+0x372/0x9f0 [lquota]
Also protect lqe_glbl_data access with lqe_glbl_data_lock in
qmt_lvbo_free(). Add debugging to see how often this is hit.
Lustre-change: https://review.whamcloud.com/50748
Lustre-commit: TBD (from
e3511c6dbfb097308f48957e2e2df8c25f87030a)
Fixes:
1dbcbd70f8 ("LU-15021 quota: protect lqe_glbl_data in lqe")
Signed-off-by: Sergey Cheremencev <scherementsev@ddn.com>
Change-Id: I030f14b02062151f1708a03ac7414a9991f798f6
Reviewed-on: https://review.whamcloud.com/c/ex/lustre-release/+/50784
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>