Whamcloud - gitweb
LU-8369 nodemap: ignore loopback NID when classifying 60/21160/2
authorKit Westneat <kit.westneat@gmail.com>
Tue, 5 Jul 2016 22:44:50 +0000 (18:44 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 12 Jul 2016 13:54:19 +0000 (13:54 +0000)
commitd61ab8df9ab9bf452626e73136b3a3b6fbdc2bf6
tree6ccb1d652e6a0d12eaae64dfc9b7d9f1dfecf060
parent9d8469694738288fcd246a1e9f22c47918a32c58
LU-8369 nodemap: ignore loopback NID when classifying

The loopback NID doesn't make sense in the nid range system
currently used by nodemap. In order to add the MGS to a nodemap,
this patch modifies nodemap_classify_nid to use the first non-lo nid
if it is given the loopback nid.

Signed-off-by: Kit Westneat <kit.westneat@gmail.com>
Change-Id: Iea91a54a14021e478782eedb28ae1a6c3e62d38c
Reviewed-on: http://review.whamcloud.com/21160
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/include/lustre_nodemap.h
lustre/mgs/mgs_handler.c
lustre/ptlrpc/nodemap_handler.c
lustre/ptlrpc/nodemap_member.c