Whamcloud - gitweb
LU-16360 osc: fix lu_ref usage 22/51522/2
authorAlexey Lyashkov <alexey.lyashkov@hpe.com>
Fri, 2 Dec 2022 08:40:05 +0000 (11:40 +0300)
committerOleg Drokin <green@whamcloud.com>
Thu, 24 Aug 2023 04:33:44 +0000 (04:33 +0000)
commitf96186ec4fca196838d64e336aeba6d6d57481d5
tree2a4438efbf6f18807afbfc6bd673610693fa8b99
parent01d16dadab75e5015c494cfa52a783a87f8bc8bf
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 <alexey.lyashkov@hpe.com>
Change-Id: Ib720b496b585c915ba20e0651a88c4afdde98e99
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/51522
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Petros Koutoupis <petros.koutoupis@hpe.com>
Reviewed-by: Andrew Perepechko <andrew.perepechko@hpe.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/osc/osc_cache.c