From 9eb41685700fdc127f468979a9ec6c4c3ce725f1 Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 4 Feb 2006 14:00:02 +0000 Subject: [PATCH] b=9811 r=nikita - free export when all OSCs are cleaned --- lustre/lov/lov_obd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lustre/lov/lov_obd.c b/lustre/lov/lov_obd.c index 3ca8b11..d65e798 100644 --- a/lustre/lov/lov_obd.c +++ b/lustre/lov/lov_obd.c @@ -316,15 +316,13 @@ static int lov_disconnect(struct obd_export *exp) int i, rc; ENTRY; - rc = class_disconnect(exp); - if (!lov->tgts) - RETURN(rc); + goto out; /* Only disconnect the underlying layers on the final disconnect. */ lov->connects--; if (lov->connects != 0) - RETURN(rc); + goto out; /* Let's hold another reference so lov_del_obd doesn't spin through putref every time */ @@ -337,6 +335,8 @@ static int lov_disconnect(struct obd_export *exp) } lov_putref(obd); +out: + rc = class_disconnect(exp); RETURN(rc); } -- 1.8.3.1