Whamcloud - gitweb
LU-16046 ldlm: group lock unlock fix 08/49008/3
authorVitaly Fertman <c17818@cray.com>
Thu, 27 Oct 2022 19:54:18 +0000 (22:54 +0300)
committerOleg Drokin <green@whamcloud.com>
Mon, 14 Nov 2022 08:26:36 +0000 (08:26 +0000)
commit3dc261c06434eceee3ba9ef86d1f376954b2d234
tree1f40d76cbff357c2a447a3cea4b1742c08b89905
parent9f45a79e983c11defeaa1e377081a566d2ef41ea
LU-16046 ldlm: group lock unlock fix

The original LU-9964 fix had a problem because with many pages in
memory grouplock unlock takes 10+ seconds just to discard them.

The current patch makes grouplock unlock thread to be not atomic, but
makes a new grouplock enqueue to wait until previous CBPENDING lock
gets destroyed.

HPE-bug-id: LUS-10644
Signed-off-by: Vitaly Fertman <vitaly.fertman@hpe.com>
Change-Id: I7798138b953320c477ce60c4e34eac40ada95a69
Reviewed-on: https://es-gerrit.dev.cray.com/161411
Reviewed-by: Andriy Skulysh <c17819@cray.com>
Reviewed-by: Alexander Boyko <alexander.boyko@hpe.com>
Tested-by: Alexander Lezhoev <alexander.lezhoev@hpe.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/49008
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Alexander <alexander.boyko@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/include/lustre_dlm.h
lustre/ldlm/ldlm_lock.c
lustre/ldlm/ldlm_request.c
lustre/mdc/mdc_dev.c
lustre/osc/osc_lock.c
lustre/osc/osc_request.c