Whamcloud - gitweb
LU-11518 osc: cancel osc_lock list traversal once found the lock is being used 05/41005/2
authorGu Zheng <gzheng@ddn.com>
Mon, 24 Jun 2019 05:51:20 +0000 (13:51 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 6 Apr 2021 04:41:59 +0000 (04:41 +0000)
commiteaee7c3cd636720fb925656f51c9a68c507849f6
treeb9602347ee1425fdeb640ce5044baa97525f83f9
parent1d3941011bb8a7436f724bc83cf33e6a45eff15e
LU-11518 osc: cancel osc_lock list traversal once found the lock is being used

Currently, in osc_ldlm_weigh_ast, it walks osc_lock list (oo_ol_list)
to check whether target dlm is being used, normally, if found, it needs
to skip the rest ones and cancel the traversal, but it doesn't, let's
fix it here.

Lustre-change: Reviewed-on: https://review.whamcloud.com/35396
Lustre-commit: eb9aa909343b95769cbf90eec36ded8821d4aa12

Change-Id: I2e64d2938cdacb6c5baca73647d74c9fb8f54f8c
Fixes: 3f3a24dc5d7d ("LU-3259 clio: cl_lock simplification")
Signed-off-by: Gu Zheng <gzheng@ddn.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Patrick Farrell <pfarrell@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Li Xi <lixi@ddn.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/41005
Reviewed-by: Alexey Lyashkov <alexey.lyashkov@hpe.com>
lustre/osc/osc_lock.c