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:
080e3ee
)
Branch HEAD
author
bwzhou
<bwzhou>
Thu, 27 Sep 2007 03:51:13 +0000
(
03:51
+0000)
committer
bwzhou
<bwzhou>
Thu, 27 Sep 2007 03:51:13 +0000
(
03:51
+0000)
b=12840
i=green
i=johann
prevent self-evicting through procfs
lustre/obdclass/genops.c
patch
|
blob
|
history
diff --git
a/lustre/obdclass/genops.c
b/lustre/obdclass/genops.c
index
9538ee3
..
fa57942
100644
(file)
--- a/
lustre/obdclass/genops.c
+++ b/
lustre/obdclass/genops.c
@@
-1314,6
+1314,10
@@
int obd_export_evict_by_uuid(struct obd_device *obd, const char *uuid)
int exports_evicted = 0;
obd_str2uuid(&doomed, uuid);
+ if(obd_uuid_equals(&doomed, &obd->obd_uuid)) {
+ CERROR("%s: can't evict myself\n", obd->obd_name);
+ return exports_evicted;
+ }
spin_lock(&obd->obd_dev_lock);
list_for_each(p, &obd->obd_exports) {