Whamcloud - gitweb
LU-7199 nodemap: assign nodemap to export before connecting 02/16802/7
authorKit Westneat <kit.westneat@gmail.com>
Tue, 13 Oct 2015 02:58:18 +0000 (22:58 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 2 Dec 2015 03:54:58 +0000 (03:54 +0000)
commit2aea469a3a6e214db485b091e92d8bca84af4f51
tree3b671700bafb433e21e377316bc6dd2c4a1aae0a
parent5fda01f3002e7e742a206ce149652c6b78356828
LU-7199 nodemap: assign nodemap to export before connecting

This patch moves the nodemap assignment to be before the connection
is active, and the nodemap deassignemnt to be after the connection
is made inactive. It also checks for null nodemaps and returns
-EACCES if the nodemap is not set in order to avoid a kernel panic.

Signed-off-by: Kit Westneat <kit.westneat@gmail.com>
Change-Id: Id4dd02cf5b4208bda6d6f17aed6adb13b18c7731
Reviewed-on: http://review.whamcloud.com/16802
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/mdt/mdt_handler.c
lustre/mdt/mdt_lib.c
lustre/ofd/ofd_obd.c