Whamcloud - gitweb
LU-13131 osc: Do not wait for grants for too long 72/38672/2
authorOleg Drokin <green@whamcloud.com>
Thu, 19 Mar 2020 19:24:28 +0000 (15:24 -0400)
committerOleg Drokin <green@whamcloud.com>
Sat, 23 May 2020 19:57:09 +0000 (19:57 +0000)
commit0dda74eec7a29c98c7b6ee9a99e54c7dbefcabca
tree07d78c385e0e58ba02efbce0e9d0adc006891b0c
parent5b9581087c138305a1d4202d496cfd1494a71f1c
LU-13131 osc: Do not wait for grants for too long

obd_timeout is way too long considering we are holding a lock
that might be contended. If OST is slow to respond, we might
get evicted, so limit us to a half of the shortest possible
max wait a server might have before switching to synchronous IO.

Lustre-change: https://review.whamcloud.com/38283
Lustre-commit: 1eee11c75ca13745d083410e1ced3a1a8b088ee9

Change-Id: I36653194c1b8b95ba3cc2ed9240df7b0888cf7ed
Signed-off-by: Oleg Drokin <green@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/38672
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/include/lustre_dlm.h
lustre/ldlm/ldlm_request.c
lustre/osc/osc_cache.c