diff --git a/lustre/obdclass/genops.c b/lustre/obdclass/genops.c
index 81765de1a10650e121b12c3822a7c9be766e998e..89a7b5c2af90f3ecf625bf5ccd113da314d5db09 100644
--- a/lustre/obdclass/genops.c
+++ b/lustre/obdclass/genops.c
@@ -1243,6 +1243,10 @@ int obd_export_evict_by_uuid(struct obd_device *obd, 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;
+        }
 
         doomed_exp = lustre_hash_get_object_by_key(obd->obd_uuid_hash_body, 
                                                    &doomed);