Whamcloud - gitweb
LU-1842 oi: handle failure cases for osd_oi_fini
authorFan Yong <yong.fan@whamcloud.com>
Mon, 8 Oct 2012 05:44:19 +0000 (13:44 +0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 10 Oct 2012 17:25:11 +0000 (13:25 -0400)
commitd6025df5ecea205c0c9665b035d74a1a03b88174
treea7d56fb6e84390f375cf574bcb1d7ccffb7025d0
parent94b6f0980fecb1ee08049e0f1da544e4c99f3fc3
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: Iffa008b29bb8763fcdc4d12c1e4cae93026a25b3
Reviewed-on: http://review.whamcloud.com/4219
Reviewed-by: Johann Lombardi <johann.lombardi@intel.com>
Tested-by: Hudson
Reviewed-by: James Simmons <uja.ornl@gmail.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/osd-ldiskfs/osd_oi.c