From 2a4a7af3993bd06afdb3c6499f8cb4edbb9564b2 Mon Sep 17 00:00:00 2001 From: Niu Yawei Date: Tue, 9 Oct 2012 22:40:03 -0400 Subject: [PATCH] LU-2119 osd: missing osd_shutdown() For zfs osd, osd_shutdown() should be called in osd_device_fini() just like ldiskfs osd does, to can make sure that everything is cleared even if the osd_process_config(CLEANUP) has no chance to be called. (when OFD/MDT wasn't started) Signed-off-by: Niu Yawei Change-Id: I54f08ac657e01ffb7a367278810016b585b3c0da Reviewed-on: http://review.whamcloud.com/4239 Tested-by: Hudson Reviewed-by: Johann Lombardi Reviewed-by: Alex Zhuravlev Reviewed-by: Mike Pershin Reviewed-by: Fan Yong Tested-by: Maloo --- lustre/osd-zfs/osd_handler.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lustre/osd-zfs/osd_handler.c b/lustre/osd-zfs/osd_handler.c index c107ff0..65d69a7 100644 --- a/lustre/osd-zfs/osd_handler.c +++ b/lustre/osd-zfs/osd_handler.c @@ -695,6 +695,7 @@ static struct lu_device *osd_device_fini(const struct lu_env *env, ENTRY; + osd_shutdown(env, o); osd_oi_fini(env, o); if (o->od_objset.os) { -- 1.8.3.1