#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"
#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"
#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
#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"
#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"
#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
#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"
#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"
#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
#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"
#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"
#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
#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"
#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"
#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
#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
* 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