Whamcloud - gitweb
LU-6324 osd: allow larger osd_thread_info for debug 55/13955/2
authorJohn L. Hammond <john.hammond@intel.com>
Tue, 3 Mar 2015 20:18:13 +0000 (14:18 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 11 Mar 2015 23:41:06 +0000 (23:41 +0000)
In osd_mod_init() skip the CLASSERT() on the size of struct
osd_thread_info if CONFIG_DEBUG_MUTEXES or CONFIG_DEBUG_SPINLOCK is
defined.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: I1320403a345886cefaf538dbf80d7c49fa226183
Reviewed-on: http://review.whamcloud.com/13955
Reviewed-by: Alex Zhuravlev <alexey.zhuravlev@intel.com>
Tested-by: Jenkins
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/osd-ldiskfs/osd_handler.c

index d7168bf..b2cf6e3 100644 (file)
@@ -6502,8 +6502,10 @@ static int __init osd_mod_init(void)
 {
        int rc;
 
+#if !defined(CONFIG_DEBUG_MUTEXES) && !defined(CONFIG_DEBUG_SPINLOCK)
        /* please, try to keep osd_thread_info smaller than a page */
        CLASSERT(sizeof(struct osd_thread_info) <= PAGE_SIZE);
+#endif
 
        osd_oi_mod_init();