Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
LU-8066 obd_type: discard obd_type_lock
[fs/lustre-release.git]
/
lustre
/
mgc
/
mgc_request.c
diff --git
a/lustre/mgc/mgc_request.c
b/lustre/mgc/mgc_request.c
index
456891a
..
ff0b0c1
100644
(file)
--- a/
lustre/mgc/mgc_request.c
+++ b/
lustre/mgc/mgc_request.c
@@
-928,7
+928,7
@@
static int mgc_cleanup(struct obd_device *obd)
/* COMPAT_146 - old config logs may have added profiles we don't
know about */
-
if (obd->obd_type->typ_refcnt
<= 1)
+
if (atomic_read(&obd->obd_type->typ_refcnt)
<= 1)
/* Only for the last mgc */
class_del_profiles();