Whamcloud - gitweb
LU-11056 lwp: fix lwp reconnection issue 77/33977/4
authorHongchao Zhang <hongchao@whamcloud.com>
Wed, 26 Dec 2018 17:22:27 +0000 (12:22 -0500)
committerOleg Drokin <green@whamcloud.com>
Sat, 19 Jan 2019 06:28:35 +0000 (06:28 +0000)
commitf9f2325146cee63ff1501479f720f9711538122a
treefae76bd1ce6c6f2a28c6b77a71bf80ae6254c826
parent179bf9a009cd27b0055e23c1478d7b298833ce35
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.

Lustre-change: https://review.whamcloud.com/32536
Lustre-commit: 0814d5077343953115f50982a2e93cebb29bda68

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