From f96186ec4fca196838d64e336aeba6d6d57481d5 Mon Sep 17 00:00:00 2001 From: Alexey Lyashkov Date: Fri, 2 Dec 2022 11:40:05 +0300 Subject: [PATCH] LU-16360 osc: fix lu_ref usage LDLM_LOCK_PUT should used with find lock by handle, but LDLM_LOCK_RELEASE with get ref, let's fix it. HPe-bug-id: LUS-11365 Test-Parameters: trivial Fixes: 9c2fb0b29cec (LU-9679 osc: convert oe_refc to kref) Signed-off-by: Alexey Lyashkov Change-Id: Ib720b496b585c915ba20e0651a88c4afdde98e99 Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51522 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Petros Koutoupis Reviewed-by: Andrew Perepechko Reviewed-by: Oleg Drokin --- lustre/osc/osc_cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/osc/osc_cache.c b/lustre/osc/osc_cache.c index 746f028..fd38335 100644 --- a/lustre/osc/osc_cache.c +++ b/lustre/osc/osc_cache.c @@ -353,7 +353,7 @@ static void osc_extent_free(struct kref *kref) if (ext->oe_dlmlock) { lu_ref_del(&ext->oe_dlmlock->l_reference, "osc_extent", ext); - LDLM_LOCK_PUT(ext->oe_dlmlock); + LDLM_LOCK_RELEASE(ext->oe_dlmlock); ext->oe_dlmlock = NULL; } #if 0 -- 1.8.3.1