Whamcloud - gitweb
LU-10237 mdc: interruptable during RPC retry for EINPROGRESS 66/30166/2
authorFan Yong <fan.yong@intel.com>
Sun, 19 Nov 2017 05:55:11 +0000 (13:55 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 14 Jan 2018 02:36:02 +0000 (02:36 +0000)
commit9c596a4996ee242aa1b954f5f2f19101d3941bf0
treec2ce7567675f3a30d8a48156dc6f464c51265c71
parent5e29a919c39eee9dacbf7d8b06348b5296b79cd2
LU-10237 mdc: interruptable during RPC retry for EINPROGRESS

Sometimes, some system resource may be inaccessible temporarily,
for example, related OI mapping is crashed and has yet not been
rebuilt. Under such case, the server will reply the client with
"-EINPROGRESS", then client will retry the RPC some time later.

Currently, the client will retry infinitely until related RPC
succeed or get other failure. But we do not know how long it
will be before related resource becoming available. It may be
very long time as to the RPC sponsor - the application or the
user does not want to retry any more, then we need to make the
logic to be interruptable. This patch is for such purpose.

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I4f939f9a350d3a99ce3d3af37d0dea8ab8030fee
Reviewed-on: https://review.whamcloud.com/30166
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/mdc/mdc_locks.c
lustre/mdc/mdc_reint.c