]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
kclient: mark debug vars __read_mostly
authorSage Weil <sage@newdream.net>
Wed, 4 Mar 2009 18:57:58 +0000 (10:57 -0800)
committerSage Weil <sage@newdream.net>
Wed, 4 Mar 2009 19:02:07 +0000 (11:02 -0800)
17 files changed:
src/kernel/addr.c
src/kernel/caps.c
src/kernel/ceph_debug.h
src/kernel/ceph_tools.c
src/kernel/dir.c
src/kernel/export.c
src/kernel/file.c
src/kernel/inode.c
src/kernel/ioctl.c
src/kernel/mds_client.c
src/kernel/mdsmap.c
src/kernel/messenger.c
src/kernel/mon_client.c
src/kernel/osd_client.c
src/kernel/osdmap.c
src/kernel/snap.c
src/kernel/super.c

index 8d6243a81eff7495fb43ec8348a9a5fcae371c7e..c6102c7c2204d6d4201d6fbbc50c14d7a5639a03 100644 (file)
@@ -8,7 +8,7 @@
 #include <linux/task_io_accounting_ops.h>
 
 #include "ceph_debug.h"
-int ceph_debug_addr = -1;
+int ceph_debug_addr = -1 __read_mostly;
 #define DOUT_MASK DOUT_MASK_ADDR
 #define DOUT_VAR ceph_debug_addr
 #include "super.h"
index 1ac2b698b6e72fb9b75abf285075fa9f7e46396d..1abec49558345a63d46d7cf186ac4c5f54dade95 100644 (file)
@@ -5,7 +5,7 @@
 
 #include "ceph_debug.h"
 
-int ceph_debug_caps = -1;
+int ceph_debug_caps = -1 __read_mostly;
 #define DOUT_MASK DOUT_MASK_CAPS
 #define DOUT_VAR ceph_debug_caps
 #include "super.h"
index 50a91b6206b2cb198d067e1e3decb356cec32976..6c88056820f4efe96139a0f99e585bf8a4a25a68 100644 (file)
@@ -5,32 +5,32 @@
 
 #include "ceph_tools.h"
 
-extern int ceph_debug;               /* debug level. */
-extern int ceph_debug_console;       /* send debug output to console? */
-extern int ceph_debug_mask;
+extern int ceph_debug __read_mostly;         /* debug level. */
+extern int ceph_debug_console __read_mostly; /* send debug output to console? */
+extern int ceph_debug_mask __read_mostly;
 
 /*
  * different debug levels for different modules.  These default to -1.
  * If they are >= 0, then they override the global ceph_debug value.
  */
-extern int ceph_debug_addr;
-extern int ceph_debug_caps;
-extern int ceph_debug_dir;
-extern int ceph_debug_export;
-extern int ceph_debug_file;
-extern int ceph_debug_inode;
-extern int ceph_debug_ioctl;
-extern int ceph_debug_mdsc;
-extern int ceph_debug_mdsmap;
-extern int ceph_debug_msgr;
-extern int ceph_debug_mon;
-extern int ceph_debug_osdc;
-extern int ceph_debug_osdmap;
-extern int ceph_debug_snap;
-extern int ceph_debug_super;
-extern int ceph_debug_protocol;
-extern int ceph_debug_proc;
-extern int ceph_debug_tools;
+extern int ceph_debug_addr __read_mostly;
+extern int ceph_debug_caps __read_mostly;
+extern int ceph_debug_dir __read_mostly;
+extern int ceph_debug_export __read_mostly;
+extern int ceph_debug_file __read_mostly;
+extern int ceph_debug_inode __read_mostly;
+extern int ceph_debug_ioctl __read_mostly;
+extern int ceph_debug_mdsc __read_mostly;
+extern int ceph_debug_mdsmap __read_mostly;
+extern int ceph_debug_msgr __read_mostly;
+extern int ceph_debug_mon __read_mostly;
+extern int ceph_debug_osdc __read_mostly;
+extern int ceph_debug_osdmap __read_mostly;
+extern int ceph_debug_snap __read_mostly;
+extern int ceph_debug_super __read_mostly;
+extern int ceph_debug_protocol __read_mostly;
+extern int ceph_debug_proc __read_mostly;
+extern int ceph_debug_tools __read_mostly;
 
 #define DOUT_MASK_ADDR         0x00000001
 #define DOUT_MASK_CAPS         0x00000002
index 249b347fe288eea556f15fa57cbb3cc6e6ca0753..5be096b6c04f0e8c51ba15f8166b2da1a701b34a 100644 (file)
@@ -8,7 +8,7 @@
 
 #include "ceph_debug.h"
 
-int ceph_debug_tools = -1;
+int ceph_debug_tools = -1 __read_mostly;
 #define DOUT_VAR ceph_debug_tools
 #define DOUT_MASK DOUT_MASK_TOOLS
 #include "super.h"
index 768ba8d93bb4e1b9697a2aa95860faba8e5a6a86..004040eb3b5bf6569a8fa443551302d0d17b8bcd 100644 (file)
@@ -3,7 +3,7 @@
 
 #include "ceph_debug.h"
 
-int ceph_debug_dir = -1;
+int ceph_debug_dir = -1 __read_mostly;
 #define DOUT_MASK DOUT_MASK_DIR
 #define DOUT_VAR ceph_debug_dir
 #include "super.h"
index a6e3537fd0500a54e8acdac218a8077b6a56b7c3..8749565aec8a46db5c57eb9469466e0f25e4be93 100644 (file)
@@ -3,7 +3,7 @@
 #include "super.h"
 #include "ceph_debug.h"
 
-int ceph_debug_export = -1;
+int ceph_debug_export = -1 __read_mostly;
 #define DOUT_MASK DOUT_MASK_EXPORT
 #define DOUT_VAR ceph_debug_export
 
index af1b8acb590fd575c9a3adb55123507f9b0bd87a..4ac7332639833346a7ed12968e93efebbd2a69be 100644 (file)
@@ -5,7 +5,7 @@
 
 #include "ceph_debug.h"
 
-int ceph_debug_file = -1;
+int ceph_debug_file = -1 __read_mostly;
 #define DOUT_MASK DOUT_MASK_FILE
 #define DOUT_VAR ceph_debug_file
 #include "super.h"
index f96c8a54b80a90309b4b0fbdf7c3847df49d127c..0462875533af3b0131504929b4eef4d643abbd78 100644 (file)
@@ -10,7 +10,7 @@
 
 #include "ceph_debug.h"
 
-int ceph_debug_inode = -1;
+int ceph_debug_inode = -1 __read_mostly;
 #define DOUT_MASK DOUT_MASK_INODE
 #define DOUT_VAR ceph_debug_inode
 #include "super.h"
index ee0ffd3b076ffffabc05a8c16f1cb899673a75f9..e032ac485ac4d97fcafbd0264c30d939e0888afb 100644 (file)
@@ -2,7 +2,7 @@
 #include "super.h"
 #include "ceph_debug.h"
 
-int ceph_debug_ioctl = -1;
+int ceph_debug_ioctl = -1 __read_mostly;
 #define DOUT_MASK DOUT_MASK_IOCTL
 #define DOUT_VAR ceph_debug_ioctl
 
index 1b436ca640647918da6f72e28fa6535112b2008d..bedc423f9980bae1c11fcd858177ffcbcf3f064b 100644 (file)
@@ -6,7 +6,7 @@
 
 #include "ceph_debug.h"
 
-int ceph_debug_mdsc = -1;
+int ceph_debug_mdsc = -1 __read_mostly;
 #define DOUT_VAR ceph_debug_mdsc
 #define DOUT_MASK DOUT_MASK_MDSC
 #include "super.h"
index 9704efa2ad2d1e5d64261eafa95af968d7e9df4f..531ef1f7a2f8573062349648a8641c2424cc4964 100644 (file)
@@ -10,7 +10,7 @@
 
 #include "ceph_debug.h"
 
-int ceph_debug_mdsmap = -1;
+int ceph_debug_mdsmap = -1 __read_mostly;
 #define DOUT_MASK DOUT_MASK_MDSMAP
 #define DOUT_VAR ceph_debug_mdsmap
 #include "super.h"
index d537c60df9098a8ff6f0582daf661ced38fb15da..89d72897fa632e2a8541c034d423a6379284329b 100644 (file)
@@ -8,7 +8,7 @@
 #include <net/tcp.h>
 
 #include "ceph_debug.h"
-int ceph_debug_msgr;
+int ceph_debug_msgr __read_mostly;
 #define DOUT_MASK DOUT_MASK_MSGR
 #define DOUT_VAR ceph_debug_msgr
 
index 08342b94c48b79f63839517e5f6001b73cb8feeb..96d9fe1a2ced814c31398b085e2517de34436acb 100644 (file)
@@ -6,7 +6,7 @@
 
 #include "ceph_debug.h"
 
-int ceph_debug_mon = -1;
+int ceph_debug_mon = -1 __read_mostly;
 #define DOUT_MASK DOUT_MASK_MON
 #define DOUT_VAR ceph_debug_mon
 #include "super.h"
index 9e80a7e092063e2b39e301038928525cec5b0d31..d5f33184423295d2c91f46bd438e198e0ff69643 100644 (file)
@@ -7,7 +7,7 @@
 
 #include "ceph_debug.h"
 
-int ceph_debug_osdc = -1;
+int ceph_debug_osdc = -1 __read_mostly;
 #define DOUT_MASK DOUT_MASK_OSDC
 #define DOUT_VAR ceph_debug_osdc
 #include "super.h"
index 659e4d54430c9aa51d88c9710b9a74ce0b0717e0..840254d958cd1e457ef4e22ea5ab27de4c6d9ddd 100644 (file)
@@ -8,7 +8,7 @@
 
 #include "ceph_debug.h"
 
-int ceph_debug_osdmap = -1;
+int ceph_debug_osdmap = -1 __read_mostly;
 #define DOUT_MASK DOUT_MASK_OSDMAP
 #define DOUT_VAR ceph_debug_osdmap
 
index 888e5772d1b68c227ac73f98e8691f5e0661c2cb..c3b167e8b62c4cfd8027a44fd9859f78f16f41f7 100644 (file)
@@ -4,7 +4,7 @@
 
 #include "ceph_debug.h"
 
-int ceph_debug_snap = -1;
+int ceph_debug_snap = -1 __read_mostly;
 #define DOUT_MASK DOUT_MASK_SNAP
 #define DOUT_VAR ceph_debug_snap
 
index 576dcfc45f0147555d2f555178dc4c7f7507e5b5..091c6f7068fa197c9ac0f02e2368d008c14b1ef6 100644 (file)
  * if the per-file debug level >= 0, then that overrides this  global
  * debug level.
  */
-int ceph_debug = 1;
-int ceph_debug_mask = 0xffffffff;
+int ceph_debug = 1 __read_mostly;
+int ceph_debug_mask = 0xffffffff __read_mostly;
 /* if true, send output to KERN_INFO (console) instead of KERN_DEBUG. */
-int ceph_debug_console;
-int ceph_debug_super = -1;   /* for this file */
+int ceph_debug_console __read_mostly;
+int ceph_debug_super = -1 __read_mostly;   /* for this file */
 
 #define DOUT_MASK DOUT_MASK_SUPER
 #define DOUT_VAR ceph_debug_super