Whamcloud - gitweb
LU-7530 mdt: Do not leak identity when no nodemap is present 19/17519/5
authorOleg Drokin <oleg.drokin@intel.com>
Wed, 9 Dec 2015 02:44:18 +0000 (21:44 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Sun, 13 Dec 2015 20:56:49 +0000 (20:56 +0000)
commit10e516109d7bb9863f1ca066a7e0842b9c7fbcb2
treee7532a277748afa1e3f3db94456a596cbcb0802f
parent0585b0fb5895a24f07ca32e830d1fa72b75f4f2b
LU-7530 mdt: Do not leak identity when no nodemap is present

It looks like sometimes nodemap structure on the export is not there
due to a race in old_init_ucred_common.
Move the nodemap check to the start not to leak identity reference
in such a case.

The bug was introduced in commit 2aea469a3a6e214d from LU-7199

Also silence the warning as there's nothing sysadmins could do when
it happens.

Change-Id: I5329ccb16201a71a263eb586e3a486b26ff238db
Signed-off-by: Oleg Drokin <oleg.drokin@intel.com>
Reviewed-on: http://review.whamcloud.com/17519
Tested-by: Jenkins
Reviewed-by: Kit Westneat <kit.westneat@gmail.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
lustre/mdt/mdt_lib.c