From: Yang Sheng Date: Fri, 8 Apr 2016 04:10:43 +0000 (+0800) Subject: LU-6601 osp: update obd status while osp status changed X-Git-Tag: 2.8.52~8 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=ba2ac3502026fcf7399ac102d24bbb7f3d7a8c87;ds=sidebyside 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 --- 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;