Whamcloud - gitweb
LU-1730 obdclass: fix cfs_lockdep_set_class() typos
authorNed Bass <bass6@llnl.gov>
Thu, 9 Aug 2012 21:42:17 +0000 (14:42 -0700)
committerOleg Drokin <green@whamcloud.com>
Thu, 4 Oct 2012 18:06:46 +0000 (14:06 -0400)
During cl_object_header initialization, coh_attr_guard was mistakenly
passed to cfs_lockdep_set_class() for all three spinlocks in
cl_object_header.

Signed-off-by: Ned Bass <bass6@llnl.gov>
Change-Id: I725b4f463fc3cbf8a6a5254f910f0e35588a7969
Reviewed-on: http://review.whamcloud.com/3590
Reviewed-by: Jinshan Xiong <jinshan.xiong@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Hudson
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/obdclass/cl_object.c

index 5ab8a92..4b0e303 100644 (file)
@@ -88,8 +88,8 @@ int cl_object_header_init(struct cl_object_header *h)
                 cfs_spin_lock_init(&h->coh_page_guard);
                 cfs_spin_lock_init(&h->coh_lock_guard);
                 cfs_spin_lock_init(&h->coh_attr_guard);
-                cfs_lockdep_set_class(&h->coh_attr_guard, &cl_page_guard_class);
-                cfs_lockdep_set_class(&h->coh_attr_guard, &cl_lock_guard_class);
+                cfs_lockdep_set_class(&h->coh_page_guard, &cl_page_guard_class);
+                cfs_lockdep_set_class(&h->coh_lock_guard, &cl_lock_guard_class);
                 cfs_lockdep_set_class(&h->coh_attr_guard, &cl_attr_guard_class);
                 h->coh_pages = 0;
                 /* XXX hard coded GFP_* mask. */