Skip to content
Snippets Groups Projects
Commit 3df29918 authored by bwzhou's avatar bwzhou
Browse files

Branch b1_6

b=12840
i=green
i=johann

prevent self-evicting through procfs
parent b7292703
No related branches found
No related tags found
No related merge requests found
...@@ -1243,6 +1243,10 @@ int obd_export_evict_by_uuid(struct obd_device *obd, char *uuid) ...@@ -1243,6 +1243,10 @@ int obd_export_evict_by_uuid(struct obd_device *obd, char *uuid)
int exports_evicted = 0; int exports_evicted = 0;
obd_str2uuid(&doomed, uuid); 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;
}
doomed_exp = lustre_hash_get_object_by_key(obd->obd_uuid_hash_body, doomed_exp = lustre_hash_get_object_by_key(obd->obd_uuid_hash_body,
&doomed); &doomed);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment