Whamcloud - gitweb
LU-4499 nrs: adjust the order of REQ NRS initilization 43/15943/5
authorJinshan Xiong <jinshan.xiong@intel.com>
Tue, 11 Aug 2015 02:14:21 +0000 (19:14 -0700)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 26 Aug 2015 15:32:33 +0000 (15:32 +0000)
commitf904a6617b57eb8b4b90f5bc198bdec758133922
treefa904578e9a20571b988c33baab9a45ab461e839
parent7417966b6a2ebf56a49dee327f1561f63bf9224b
LU-4499 nrs: adjust the order of REQ NRS initilization

NRS block of ptlrpc_request must be initialized before it is added
into exp_{hp,reg}_list; otherwise ptlrpc_nrs_req_hp_move() may access
uninitialized NRS block. Code cleanup.

Signed-off-by: Jinshan Xiong <jinshan.xiong@intel.com>
Change-Id: Ide1d7edfa5e09bf498baaa60023dbccf3fb152dc
Reviewed-on: http://review.whamcloud.com/15943
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: wangdi <di.wang@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/ptlrpc/service.c