diff options
| author | Tejun Heo <tj@kernel.org> | 2012-04-01 15:30:01 -0400 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2012-04-01 15:55:00 -0400 |
| commit | 959d851caa48829eb85cb85aa949fd6b4c5d5bc6 (patch) | |
| tree | 3ba9c94ec346275fb44c4f0d1cd2537cdff8d811 /include/linux/sunrpc/debug.h | |
| parent | a5567932fc926739e29e98487128080f40c61710 (diff) | |
| parent | 48ddbe194623ae089cc0576e60363f2d2e85662a (diff) | |
Merge branch 'for-3.5' of ../cgroup into block/for-3.5/core-merged
cgroup/for-3.5 contains the following changes which blk-cgroup needs
to proceed with the on-going cleanup.
* Dynamic addition and removal of cftypes to make config/stat file
handling modular for policies.
* cgroup removal update to not wait for css references to drain to fix
blkcg removal hang caused by cfq caching cfqgs.
Pull in cgroup/for-3.5 into block/for-3.5/core. This causes the
following conflicts in block/blk-cgroup.c.
* 761b3ef50e "cgroup: remove cgroup_subsys argument from callbacks"
conflicts with blkiocg_pre_destroy() addition and blkiocg_attach()
removal. Resolved by removing @subsys from all subsys methods.
* 676f7c8f84 "cgroup: relocate cftype and cgroup_subsys definitions in
controllers" conflicts with ->pre_destroy() and ->attach() updates
and removal of modular config. Resolved by dropping forward
declarations of the methods and applying updates to the relocated
blkio_subsys.
* 4baf6e3325 "cgroup: convert all non-memcg controllers to the new
cftype interface" builds upon the previous item. Resolved by adding
->base_cftypes to the relocated blkio_subsys.
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux/sunrpc/debug.h')
| -rw-r--r-- | include/linux/sunrpc/debug.h | 26 |
1 files changed, 23 insertions, 3 deletions
diff --git a/include/linux/sunrpc/debug.h b/include/linux/sunrpc/debug.h index c2786f20016..a76cc20d98c 100644 --- a/include/linux/sunrpc/debug.h +++ b/include/linux/sunrpc/debug.h | |||
| @@ -31,9 +31,12 @@ | |||
| 31 | /* | 31 | /* |
| 32 | * Enable RPC debugging/profiling. | 32 | * Enable RPC debugging/profiling. |
| 33 | */ | 33 | */ |
| 34 | #ifdef CONFIG_SYSCTL | 34 | #ifdef CONFIG_SUNRPC_DEBUG |
| 35 | #define RPC_DEBUG | 35 | #define RPC_DEBUG |
| 36 | #endif | 36 | #endif |
| 37 | #ifdef CONFIG_TRACEPOINTS | ||
| 38 | #define RPC_TRACEPOINTS | ||
| 39 | #endif | ||
| 37 | /* #define RPC_PROFILE */ | 40 | /* #define RPC_PROFILE */ |
| 38 | 41 | ||
| 39 | /* | 42 | /* |
| @@ -47,15 +50,32 @@ extern unsigned int nlm_debug; | |||
| 47 | #endif | 50 | #endif |
| 48 | 51 | ||
| 49 | #define dprintk(args...) dfprintk(FACILITY, ## args) | 52 | #define dprintk(args...) dfprintk(FACILITY, ## args) |
| 53 | #define dprintk_rcu(args...) dfprintk_rcu(FACILITY, ## args) | ||
| 50 | 54 | ||
| 51 | #undef ifdebug | 55 | #undef ifdebug |
| 52 | #ifdef RPC_DEBUG | 56 | #ifdef RPC_DEBUG |
| 53 | # define ifdebug(fac) if (unlikely(rpc_debug & RPCDBG_##fac)) | 57 | # define ifdebug(fac) if (unlikely(rpc_debug & RPCDBG_##fac)) |
| 54 | # define dfprintk(fac, args...) do { ifdebug(fac) printk(args); } while(0) | 58 | |
| 59 | # define dfprintk(fac, args...) \ | ||
| 60 | do { \ | ||
| 61 | ifdebug(fac) \ | ||
| 62 | printk(KERN_DEFAULT args); \ | ||
| 63 | } while (0) | ||
| 64 | |||
| 65 | # define dfprintk_rcu(fac, args...) \ | ||
| 66 | do { \ | ||
| 67 | ifdebug(fac) { \ | ||
| 68 | rcu_read_lock(); \ | ||
| 69 | printk(KERN_DEFAULT args); \ | ||
| 70 | rcu_read_unlock(); \ | ||
| 71 | } \ | ||
| 72 | } while (0) | ||
| 73 | |||
| 55 | # define RPC_IFDEBUG(x) x | 74 | # define RPC_IFDEBUG(x) x |
| 56 | #else | 75 | #else |
| 57 | # define ifdebug(fac) if (0) | 76 | # define ifdebug(fac) if (0) |
| 58 | # define dfprintk(fac, args...) do ; while (0) | 77 | # define dfprintk(fac, args...) do {} while (0) |
| 78 | # define dfprintk_rcu(fac, args...) do {} while (0) | ||
| 59 | # define RPC_IFDEBUG(x) | 79 | # define RPC_IFDEBUG(x) |
| 60 | #endif | 80 | #endif |
| 61 | 81 | ||
