Whamcloud - gitweb
LU-10237 mdc: interruptable during RPC retry for EINPROGRESS 03/30903/2
authorFan Yong <fan.yong@intel.com>
Sun, 19 Nov 2017 05:55:11 +0000 (13:55 +0800)
committerJohn L. Hammond <john.hammond@intel.com>
Fri, 9 Feb 2018 18:12:42 +0000 (18:12 +0000)
commit822d5ce80dd357b53c0414cc299fadef0db076d1
tree660d8c809591258f87fdd8d692db6e3baf34de1e
parent82bf22a4200ba657465302daf6a77b9ebd6b7853
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.

Lustre-change: https://review.whamcloud.com/30166
Lustre-commit: 9c596a4996ee242aa1b954f5f2f19101d3941bf0

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I4f939f9a350d3a99ce3d3af37d0dea8ab8030fee
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Mike Pershin <mike.pershin@intel.com>
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/30903
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
lustre/mdc/mdc_locks.c
lustre/mdc/mdc_reint.c