Whamcloud - gitweb
LU-593 obdclass: echo client for MDS stack
[fs/lustre-release.git] / lustre / include / lu_object.h
index 4e035cd..f431e0b 100644 (file)
@@ -293,6 +293,10 @@ struct lu_device {
          * A list of references to this object, for debugging.
          */
         struct lu_ref                      ld_reference;
+        /**
+         * Link the device to the site.
+         **/
+        cfs_list_t                         ld_linkage;
 };
 
 struct lu_device_type_operations;
@@ -631,6 +635,13 @@ struct lu_site {
          */
         cfs_list_t                ls_linkage;
         /**
+         * List for lu device for this site, protected
+         * by ls_ld_lock.
+         **/
+        cfs_list_t                ls_ld_linkage;
+        cfs_spinlock_t            ls_ld_lock;
+
+        /**
          * lu_site stats
          */
         struct lprocfs_stats     *ls_stats;