Whamcloud - gitweb
LU-1842 oi: handle failure cases for osd_oi_fini
authorFan Yong <yong.fan@whamcloud.com>
Mon, 8 Oct 2012 05:23:03 +0000 (13:23 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 8 Oct 2012 21:40:25 +0000 (17:40 -0400)
commitb4aad0cdc53c625241d7de7a2bbcb7feaee5263d
treeff3311de6f9453dd726ffb10b84bcc543d39f72c
parentcaf450d7d8a39d20c73d375f8b792ae8540b4616
LU-1842 oi: handle failure cases for osd_oi_fini

Sometimes the osd_oi_fini() may be called without osd_oi_init()
called firstly, or with osd_oi_init() failure. Under such cases,
the osd_device::od_oi_table may be invalid, so just skip related
OI cleanup.

Signed-off-by: Fan Yong <yong.fan@whamcloud.com>
Change-Id: I67156acbe235287e8fc98606b0449998ef6f9dd0
Reviewed-on: http://review.whamcloud.com/4218
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
Reviewed-by: Liang Zhen <liang@whamcloud.com>
Tested-by: Hudson
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
lustre/osd-ldiskfs/osd_oi.c