From a0d49d7368d4f97cb1abc2afe6048da809edd4b2 Mon Sep 17 00:00:00 2001 From: Ned Bass Date: Thu, 9 Aug 2012 14:42:17 -0700 Subject: [PATCH] LU-1730 obdclass: fix cfs_lockdep_set_class() typos 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 Change-Id: I725b4f463fc3cbf8a6a5254f910f0e35588a7969 Reviewed-on: http://review.whamcloud.com/3590 Reviewed-by: Jinshan Xiong Reviewed-by: Andreas Dilger Tested-by: Hudson Tested-by: Maloo --- lustre/obdclass/cl_object.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lustre/obdclass/cl_object.c b/lustre/obdclass/cl_object.c index 5ab8a92..4b0e303 100644 --- a/lustre/obdclass/cl_object.c +++ b/lustre/obdclass/cl_object.c @@ -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. */ -- 1.8.3.1