Whamcloud - gitweb
lu_site_fini(): break reference from lu_device to lu_site
authornikita <nikita>
Sun, 16 Apr 2006 17:45:27 +0000 (17:45 +0000)
committernikita <nikita>
Sun, 16 Apr 2006 17:45:27 +0000 (17:45 +0000)
lustre/obdclass/lu_object.c

index b07f39d..7ece821 100644 (file)
@@ -287,6 +287,7 @@ void lu_site_fini(struct lu_site *s)
        }
        if (s->ls_top_dev != NULL) {
                lu_device_put(s->ls_top_dev);
+               s->ls_top_dev->ld_site = NULL;
                s->ls_top_dev = NULL;
        }
  }