Whamcloud - gitweb
LU-3772 ptlrpc: fix nrs cleanup 10/7410/4
authorNiu Yawei <yawei.niu@intel.com>
Thu, 14 Nov 2013 04:48:00 +0000 (23:48 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 13 Jan 2014 18:34:52 +0000 (18:34 +0000)
commit7c3d518d72446846c27539c0886a847a78ed8235
tree25b369f146b5be475de97bf504dbe12074855184
parent6e270587e4a49fa1cd35e26e3af438b6511393e5
LU-3772 ptlrpc: fix nrs cleanup

When service start failed due to short of memory, the cleanup code
could operate on uninitialized structure and cause crash at the end.

This patch fix the nrs_svcpt_cleanup_locked() to perform cleanup only
on the nrs which has been properly initialized.

Signed-off-by: Niu Yawei <yawei.niu@intel.com>
Change-Id: Ieafa5b144133490b662f5a80a7b99311a9970de3
Reviewed-on: http://review.whamcloud.com/7410
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/ptlrpc/nrs.c