Whamcloud - gitweb
LU-13131 osc: Do not wait for grants for too long 83/38283/6
authorOleg Drokin <green@whamcloud.com>
Mon, 20 Apr 2020 13:51:29 +0000 (09:51 -0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 20 May 2020 08:23:12 +0000 (08:23 +0000)
commit1eee11c75ca13745d083410e1ced3a1a8b088ee9
treed40a0ca643d3ba4c4893b40f24cb7cb4f5015454
parent4a1d58eb28e0a7645f52a3a90c29ce36f6dcf5bd
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.

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