diff options
Diffstat (limited to 'include/linux/init_task.h')
| -rw-r--r-- | include/linux/init_task.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/include/linux/init_task.h b/include/linux/init_task.h index caa151fbebb7..580f70c02391 100644 --- a/include/linux/init_task.h +++ b/include/linux/init_task.h | |||
| @@ -22,6 +22,14 @@ | |||
| 22 | extern struct files_struct init_files; | 22 | extern struct files_struct init_files; |
| 23 | extern struct fs_struct init_fs; | 23 | extern struct fs_struct init_fs; |
| 24 | 24 | ||
| 25 | #ifdef CONFIG_CGROUPS | ||
| 26 | #define INIT_THREADGROUP_FORK_LOCK(sig) \ | ||
| 27 | .threadgroup_fork_lock = \ | ||
| 28 | __RWSEM_INITIALIZER(sig.threadgroup_fork_lock), | ||
| 29 | #else | ||
| 30 | #define INIT_THREADGROUP_FORK_LOCK(sig) | ||
| 31 | #endif | ||
| 32 | |||
| 25 | #define INIT_SIGNALS(sig) { \ | 33 | #define INIT_SIGNALS(sig) { \ |
| 26 | .nr_threads = 1, \ | 34 | .nr_threads = 1, \ |
| 27 | .wait_chldexit = __WAIT_QUEUE_HEAD_INITIALIZER(sig.wait_chldexit),\ | 35 | .wait_chldexit = __WAIT_QUEUE_HEAD_INITIALIZER(sig.wait_chldexit),\ |
| @@ -38,6 +46,7 @@ extern struct fs_struct init_fs; | |||
| 38 | }, \ | 46 | }, \ |
| 39 | .cred_guard_mutex = \ | 47 | .cred_guard_mutex = \ |
| 40 | __MUTEX_INITIALIZER(sig.cred_guard_mutex), \ | 48 | __MUTEX_INITIALIZER(sig.cred_guard_mutex), \ |
| 49 | INIT_THREADGROUP_FORK_LOCK(sig) \ | ||
| 41 | } | 50 | } |
| 42 | 51 | ||
| 43 | extern struct nsproxy init_nsproxy; | 52 | extern struct nsproxy init_nsproxy; |
| @@ -83,13 +92,6 @@ extern struct group_info init_groups; | |||
| 83 | #define INIT_IDS | 92 | #define INIT_IDS |
| 84 | #endif | 93 | #endif |
| 85 | 94 | ||
| 86 | /* | ||
| 87 | * Because of the reduced scope of CAP_SETPCAP when filesystem | ||
| 88 | * capabilities are in effect, it is safe to allow CAP_SETPCAP to | ||
| 89 | * be available in the default configuration. | ||
| 90 | */ | ||
| 91 | # define CAP_INIT_BSET CAP_FULL_SET | ||
| 92 | |||
| 93 | #ifdef CONFIG_RCU_BOOST | 95 | #ifdef CONFIG_RCU_BOOST |
| 94 | #define INIT_TASK_RCU_BOOST() \ | 96 | #define INIT_TASK_RCU_BOOST() \ |
| 95 | .rcu_boost_mutex = NULL, | 97 | .rcu_boost_mutex = NULL, |
| @@ -134,7 +136,6 @@ extern struct cred init_cred; | |||
| 134 | .stack = &init_thread_info, \ | 136 | .stack = &init_thread_info, \ |
| 135 | .usage = ATOMIC_INIT(2), \ | 137 | .usage = ATOMIC_INIT(2), \ |
| 136 | .flags = PF_KTHREAD, \ | 138 | .flags = PF_KTHREAD, \ |
| 137 | .lock_depth = -1, \ | ||
| 138 | .prio = MAX_PRIO-20, \ | 139 | .prio = MAX_PRIO-20, \ |
| 139 | .static_prio = MAX_PRIO-20, \ | 140 | .static_prio = MAX_PRIO-20, \ |
| 140 | .normal_prio = MAX_PRIO-20, \ | 141 | .normal_prio = MAX_PRIO-20, \ |
