Whamcloud - gitweb
LU-14069 ldlm: Fix unbounded OBD_FAIL_LDLM_CANCEL_BL_CB_RACE wait 11/40411/3
authorOleg Drokin <green@whamcloud.com>
Fri, 23 Oct 2020 06:56:04 +0000 (02:56 -0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 3 Nov 2020 03:16:59 +0000 (03:16 +0000)
commit5026a42944c2219d2a5d8f2692670dcc2727eda2
treed451b5268a92e704b386b8b80cc4508f8f89ad90
parentf333b77d5420cf69cf0a532f5ea708a9b9c415ad
LU-14069 ldlm: Fix unbounded OBD_FAIL_LDLM_CANCEL_BL_CB_RACE wait

in ldlm_handle_cp_callback the while loop is clearly supposed
to be limited by the "to" value of 1 second, but is not.
Seems to have been broken by all the Solaris porting in HEAD
all the way back in 2008.
Restore the to assignment to make it not hang indefinitely.

Lustre-change: https://review.whamcloud.com/#/c/40375/
Lusre-commit: 5da99051e58b9e9079b66a275d6c47e1e109eee5

Change-Id: I449bfd7f585ab7db475fb3fd4cbbd876126ff789
Fixes: adde80ffef ("Land b_head_libcfs onto HEAD")
Signed-off-by: Oleg Drokin <green@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/40411
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/ldlm/ldlm_lockd.c