Whamcloud - gitweb
LU-3808 ptlrpc: Return a meaningful status from ptlrpcd_init() 22/7522/4
authorSwapnil Pimpale <spimpale@ddn.com>
Mon, 2 Sep 2013 07:21:32 +0000 (12:51 +0530)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 18 Sep 2013 09:04:25 +0000 (09:04 +0000)
commita69e2fc317f8dcaba1d8520d3934cda165a46bc3
tree04b627606fabc998b451dbd42288355a3745b105
parent20c45bdd46a2055a6672c33187b8fbcc1e298933
LU-3808 ptlrpc: Return a meaningful status from ptlrpcd_init()

This patch has the following:
1) Fix for the return value from ptlrpcd_init(). It will now return a
correct status instead of returning zero always.
2) ptlrpcd_addref() should not increment ptlrpcd_users on error.
3) Added code in a mdc_setup() and mgc_setup() to test the return
value of ptlrpcd_addref() and return on error.

Signed-off-by: Swapnil Pimpale <spimpale@ddn.com>
Change-Id: I684b5603b33d469f4e7566d07f52cb49b05c8ec6
Reviewed-on: http://review.whamcloud.com/7522
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/mdc/mdc_request.c
lustre/mgc/libmgc.c
lustre/mgc/mgc_request.c
lustre/ptlrpc/ptlrpcd.c