From: Mikhail Pershin Date: Thu, 8 May 2014 18:29:24 +0000 (+0400) Subject: LU-4916 lwp: don't add connection for missed LWP X-Git-Tag: 2.5.59~10 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=b7f1952882e9e133b43acb22d010767c664539b9;p=fs%2Flustre-release.git LU-4916 lwp: don't add connection for missed LWP The LWP isn't needed for some MDT-MDT connections, e.g. for MDT0-MDT1, but lustre_lwp_add_conn() is called for any 'add mdc' marker and cause error. Patch add LWP connection only where it is needed. Signed-off-by: Mikhail Pershin Change-Id: I930559a14a37ee0de27cea93113a3608e7ddf9cc Reviewed-on: http://review.whamcloud.com/10272 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Fan Yong Reviewed-by: wangdi Reviewed-by: Andreas Dilger --- diff --git a/lustre/obdclass/obd_mount_server.c b/lustre/obdclass/obd_mount_server.c index 86ae55c..0cefea2 100644 --- a/lustre/obdclass/obd_mount_server.c +++ b/lustre/obdclass/obd_mount_server.c @@ -828,8 +828,11 @@ static int client_lwp_config_process(const struct lu_env *env, *ptr = '-'; break; } - *ptr = '-'; + + if (IS_MDT(lsi) && idx != 0) + break; + rc = lustre_lwp_add_conn(lcfg, lsi, idx); break; }