Whamcloud - gitweb
LU-5290 clio: reorder initialization in cl_req_alloc() 09/11009/3
authorJohn L. Hammond <john.hammond@intel.com>
Tue, 8 Jul 2014 20:35:18 +0000 (15:35 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 15 Jul 2014 03:56:21 +0000 (03:56 +0000)
commit35c686077094fb92a1f15368e27d5f625c27c4f7
treeea10a7a27313e0b2d54338f365b8b28a7a83c50c
parent5a7e4480fc519c8df4ca0b11e6d5239956316bd3
LU-5290 clio: reorder initialization in cl_req_alloc()

In cl_req_alloc() ensure that the list heads crq_pages and crq_layers
have been initialized before passing the request to
cl_req_completion(). This fixes an oops in the error path.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I1f4ff994ca5db974e97b41452f7351f68ed350f8
Reviewed-on: http://review.whamcloud.com/11009
Tested-by: Jenkins
Reviewed-by: Bobi Jam <bobijam@gmail.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/obdclass/cl_io.c