Whamcloud - gitweb
LU-15038 mgc: release cl_mgc_mutex on error
[fs/lustre-release.git] / lustre / lov / lovsub_dev.c
index 90a11e7..4f2640b 100644 (file)
@@ -27,7 +27,6 @@
  */
 /*
  * This file is part of Lustre, http://www.lustre.org/
- * Lustre is a trademark of Sun Microsystems, Inc.
  *
  * Implementation of cl_device and cl_device_type for LOVSUB layer.
  *
@@ -90,10 +89,7 @@ static struct lu_device *lovsub_device_free(const struct lu_env *env,
        struct lovsub_device *lsd = lu2lovsub_dev(d);
        struct lu_device *next = cl2lu_dev(lsd->acid_next);
 
-       if (atomic_read(&d->ld_ref) && d->ld_site) {
-               LIBCFS_DEBUG_MSG_DATA_DECL(msgdata, D_ERROR, NULL);
-               lu_site_print(env, d->ld_site, &msgdata, lu_cdebug_printer);
-       }
+       lu_site_print(env, d->ld_site, &d->ld_ref, D_ERROR, lu_cdebug_printer);
        cl_device_fini(lu2cl_dev(d));
        OBD_FREE_PTR(lsd);
        return next;