Whamcloud - gitweb
LU-3487 llite: handle io init failure in ll_fault_io_init() 35/6735/2
authorJohn L. Hammond <john.hammond@intel.com>
Fri, 21 Jun 2013 14:29:55 +0000 (09:29 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Fri, 28 Jun 2013 19:21:47 +0000 (19:21 +0000)
commit86586a487771c2903072cc18fb46771943dc1bdf
tree4951841befa146ddc95747dda2cec463140facb2
parent848f9e20320cb7c01eaf7f1b5c27f5efd54e4818
LU-3487 llite: handle io init failure in ll_fault_io_init()

In ll_fault_io_init(), if cl_io_init() has failed then cleanup and
return an ERR_PTR(). This fixes an oops in the page fault handling
code when a partially initialized io is used. In ll_page_mkwrite0() do
not call cl_io_fini() on an ERR_PTR().

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I04b1c1f3071413ba3fa53bbbfcb83fe325ed9050
Reviewed-on: http://review.whamcloud.com/6735
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Lai Siyao <lai.siyao@intel.com>
Reviewed-by: Jinshan Xiong <jinshan.xiong@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/llite/llite_mmap.c