Whamcloud - gitweb
LU-3772 ptlrpc: fix nrs cleanup
authorNiu Yawei <yawei.niu@intel.com>
Thu, 14 Nov 2013 04:48:00 +0000 (23:48 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 14 Feb 2014 16:35:28 +0000 (11:35 -0500)
commit853045599b90f3687d03a5e7203381b610cf12d3
tree0ea5338e5ce689ea743d8c286436acc046a808be
parent419b24d71f9548eadb64ecd0d369e8247bc362df
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