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:
d6ce64b
)
more export cleanup
author
pschwan
<pschwan>
Thu, 8 Aug 2002 10:06:02 +0000
(10:06 +0000)
committer
pschwan
<pschwan>
Thu, 8 Aug 2002 10:06:02 +0000
(10:06 +0000)
lustre/obdfilter/filter.c
patch
|
blob
|
history
diff --git
a/lustre/obdfilter/filter.c
b/lustre/obdfilter/filter.c
index
c45d715
..
4fb18e7
100644
(file)
--- a/
lustre/obdfilter/filter.c
+++ b/
lustre/obdfilter/filter.c
@@
-442,12
+442,13
@@
static int filter_cleanup(struct obd_device * obddev)
struct super_block *sb;
ENTRY;
- if (!(obddev->obd_flags & OBD_SET_UP))
- RETURN(0);
-
if (!list_empty(&obddev->obd_exports)) {
CERROR("still has clients!\n");
- RETURN(-EBUSY);
+ class_disconnect_all(obddev);
+ if (!list_empty(&obddev->obd_exports)) {
+ CERROR("still has exports after forced cleanup?\n");
+ RETURN(-EBUSY);
+ }
}
ldlm_namespace_free(obddev->obd_namespace);