Whamcloud - gitweb
LU-6307 obdclass: distinguish MGC/MDT connection properly 27/13927/2
authorFan Yong <fan.yong@intel.com>
Thu, 4 Dec 2014 16:58:06 +0000 (00:58 +0800)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 3 Mar 2015 18:10:01 +0000 (18:10 +0000)
commit1bdc4fd0594e8948623bde18e7b5d691104d8808
tree89a988d2e948e2d41a228dbceb1a225a621339dd
parenta6aa05240b686d3c5ee2ccf3c282511e93cb62d1
LU-6307 obdclass: distinguish MGC/MDT connection properly

In the 5f8847bca12afb798de600299356ed2e3655a53e, we introduced the
version checking for the MDT-MDT connection. But there is a corner
that the MGC will set OBD_CONNECT_MNE_SWAB (that is defined as the
same as OBD_CONNECT_MDS_MDS) in the connection flags for Imperative
Recovery interoperability issues with MGS. So the server needs to
know whether the connection is really from another MDT or from the
MGC via checking OBD_CONNECT_FID (that is not set for the MGC-MGS
connection).

Test-Parameters: envdefinitions=ONLY=105 clientjob=lustre-b2_6 clientbuildno=19 testlist=recovery-small
Signed-off-by: Fan Yong <fan.yong@intel.com>
Change-Id: I9cee743d5474702b77adbb8c3dedd6c19faef15f
Reviewed-on: http://review.whamcloud.com/13927
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/ldlm/ldlm_lib.c
lustre/ptlrpc/import.c