From ba2ac3502026fcf7399ac102d24bbb7f3d7a8c87 Mon Sep 17 00:00:00 2001 From: Yang Sheng Date: Fri, 8 Apr 2016 12:10:43 +0800 Subject: [PATCH] LU-6601 osp: update obd status while osp status changed We should update OBD status when osp import status is changed. Else the status change will not reflect in 'lctl dl'. Signed-off-by: Yang Sheng Change-Id: Ice10802028b569470027db33a5e5e5e2bcc9dfc0 Reviewed-on: http://review.whamcloud.com/19402 Tested-by: Jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Niu Yawei Reviewed-by: Oleg Drokin --- lustre/osp/osp_dev.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lustre/osp/osp_dev.c b/lustre/osp/osp_dev.c index 2bb469e..510e3102 100644 --- a/lustre/osp/osp_dev.c +++ b/lustre/osp/osp_dev.c @@ -1593,6 +1593,7 @@ static int osp_import_event(struct obd_device *obd, struct obd_import *imp, case IMP_EVENT_INACTIVE: d->opd_imp_active = 0; d->opd_imp_connected = 0; + d->opd_obd->obd_inactive = 1; if (d->opd_connect_mdt) break; @@ -1610,6 +1611,7 @@ static int osp_import_event(struct obd_device *obd, struct obd_import *imp, d->opd_new_connection = 1; d->opd_imp_connected = 1; d->opd_imp_seen_connected = 1; + d->opd_obd->obd_inactive = 0; if (d->opd_connect_mdt) break; -- 1.8.3.1