Whamcloud - gitweb
LU-11056 lwp: fix lwp reconnection issue 36/32536/6
authorHongchao Zhang <hongchao.zhang@intel.com>
Thu, 24 May 2018 20:09:27 +0000 (16:09 -0400)
committerOleg Drokin <green@whamcloud.com>
Tue, 28 Aug 2018 05:14:01 +0000 (05:14 +0000)
commit0814d5077343953115f50982a2e93cebb29bda68
treeed1d74a3f01a8a66313e6a010e299c2f436e24f1
parent3e61bbbcd4baaac76a67093404b60810261812e0
LU-11056 lwp: fix lwp reconnection issue

After the OST or MDT was restarted, the lwp reconnection can be
failed for -EALREADY because the connect count in the connecttion
request is less then the value saved in the corresponding export
at MDT0000, which could cause the system hang.

The patch also changes lustre_lwp_connect to use OBD_CONNECT_MDS_MDS
flag only when the connection is between MDTs.

Change-Id: I9ae7b4faadc65fdaa78458a06315b1739d144feb
Signed-off-by: Hongchao Zhang <hongchao.zhang@intel.com>
Reviewed-on: https://review.whamcloud.com/32536
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Mike Pershin <mpershin@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/ldlm/ldlm_lib.c
lustre/obdclass/obd_mount_server.c