From: alex Date: Sat, 4 Feb 2006 14:00:02 +0000 (+0000) Subject: b=9811 X-Git-Tag: v1_7_100~1^103~4^2~55 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=9eb41685700fdc127f468979a9ec6c4c3ce725f1;p=fs%2Flustre-release.git b=9811 r=nikita - free export when all OSCs are cleaned --- 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); }