Whamcloud - gitweb
LU-5092 nodemap: users of ted_nodemap should take ref 74/19674/16
authorKit Westneat <kit.westneat@gmail.com>
Wed, 20 Apr 2016 14:12:42 +0000 (10:12 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 31 May 2016 04:55:20 +0000 (04:55 +0000)
commit34ba26ea9884df0758f8ec8dd1047b4cf474af09
treedad581935a1f102312227a0ebf1b24c3f0535fd3
parent12daa707eada5dd8ca1280b133ff52d13daf4522
LU-5092 nodemap: users of ted_nodemap should take ref

In order to quickly map clients, the client's assigned nodemap is
saved on the export data struct. When mapping occurs, a reference to
that nodemap is used for mapping. If no reference is taken during
mapping and the nodemap is put elsewhere, then the nodemap could be
destroyed before the mapping is finished. This patch ensures that a
reference is taken before mapping.

Signed-off-by: Kit Westneat <kit.westneat@gmail.com>
Change-Id: I5c4d707970b1a86fb061a501240182ff3dc7be51
Reviewed-on: http://review.whamcloud.com/19674
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
15 files changed:
lustre/include/lustre_export.h
lustre/include/lustre_nodemap.h
lustre/mdt/mdt_handler.c
lustre/mdt/mdt_lib.c
lustre/mdt/mdt_open.c
lustre/mdt/mdt_xattr.c
lustre/ofd/ofd_dev.c
lustre/ptlrpc/nodemap_handler.c
lustre/ptlrpc/nodemap_internal.h
lustre/ptlrpc/nodemap_lproc.c
lustre/ptlrpc/nodemap_member.c
lustre/ptlrpc/nodemap_storage.c
lustre/target/tgt_handler.c
lustre/target/tgt_lastrcvd.c
lustre/tests/sanity-sec.sh