Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19d3d95
)
Decrement the LOV module use count on connect errors.
author
adilger
<adilger>
Thu, 14 Nov 2002 23:32:53 +0000
(23:32 +0000)
committer
adilger
<adilger>
Thu, 14 Nov 2002 23:32:53 +0000
(23:32 +0000)
lustre/lov/lov_obd.c
patch
|
blob
|
history
diff --git
a/lustre/lov/lov_obd.c
b/lustre/lov/lov_obd.c
index
7d41e3b
..
50feb49
100644
(file)
--- a/
lustre/lov/lov_obd.c
+++ b/
lustre/lov/lov_obd.c
@@
-58,10
+58,8
@@
static int lov_connect(struct lustre_handle *conn, struct obd_device *obd,
MOD_INC_USE_COUNT;
rc = class_connect(conn, obd, cluuid);
- if (rc) {
- MOD_DEC_USE_COUNT;
- RETURN(rc);
- }
+ if (rc)
+ GOTO(out_dec, rc);
/* We don't want to actually do the underlying connections more than
* once, so keep track. */
@@
-193,6
+191,8
@@
static int lov_connect(struct lustre_handle *conn, struct obd_device *obd,
OBD_FREE(lov->tgts, lov->bufsize);
out_conn:
class_disconnect(conn);
+ out_dec:
+ MOD_DEC_USE_COUNT;
goto out;
}