Whamcloud - gitweb
LU-10045 obdclass: multiple try when register target 01/31301/2
authorFan Yong <fan.yong@intel.com>
Thu, 11 Jan 2018 15:27:19 +0000 (23:27 +0800)
committerJohn L. Hammond <john.hammond@intel.com>
Mon, 19 Mar 2018 20:09:29 +0000 (20:09 +0000)
commitaa99a7bb77cce480ff5753238d857a0eb797e5fe
tree8c19989730527a575a2001ac3b0771310191e82d
parent8af27a326ffebc7c0f40734767035d353bafa43c
LU-10045 obdclass: multiple try when register target

It is possible that the connection between MGC and MGS has not
been established when register target to MGS for server mount.
At that time, the ptlrpcd may be trying to (re-)connect to MGS
at background. Under such case, the mount process should not
report failure (-ESHUTDOWN -r -EIO), instead, it can retry the
MGS_TARGET_REG RPC after sometime (such as 2 seconds).

Lustre-change: https://review.whamcloud.com/30761
Lustre-commit: 79bfc74869e3f7b052874f4585399c5ba7f599e9

Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I44e53a9d1de037907bdb5148b8c44d332439a50c
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Reviewed-by: Faccini Bruno <bruno.faccini@intel.com>
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/31301
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
lustre/obdclass/obd_mount_server.c