Whamcloud - gitweb
LU-15097 quota: stop pool_recalc before killing pool 56/45256/8
authorSergey Cheremencev <sergey.cheremencev@hpe.ccom>
Mon, 20 Sep 2021 12:08:20 +0000 (15:08 +0300)
committerOleg Drokin <green@whamcloud.com>
Thu, 6 Jan 2022 22:02:29 +0000 (22:02 +0000)
commit862f0baa7c21cb631b98d3886ef9e938f4519573
treed7f9a6af621c15a4041dbb0d200fed3080243f65
parent61ec1e0f2ca8dc4c9f7ed41f782960e65cab0920
LU-15097 quota: stop pool_recalc before killing pool

qmt_start_pool_recalc holds a refrence on a pool while
it is running. This thread should be stopped before
putting the last pool reference in qmt_pool_free to be
sure that pool can finally freed. Patch helps to avoid
following ASSERTION:
qmt_pool_fini()) ASSERTION( list_empty(&qmt->qmt_pool_list) ) failed

HPE-bug-id: LUS-10294
Change-Id: If72042a620d9ded693fcb669bc9148d1f96126a4
Signed-off-by: Sergey Cheremencev <sergey.cheremencev@hpe.com>
Reviewed-on: https://review.whamcloud.com/45256
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alexander Boyko <alexander.boyko@hpe.com>
Reviewed-by: Alexey Lyashkov <alexey.lyashkov@hpe.com>
Reviewed-by: Andriy Skulysh <andriy.skulysh@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/obd_support.h
lustre/quota/qmt_pool.c
lustre/tests/sanity-quota.sh