diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 294eb2f80144..244c287a5ac1 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -1409,7 +1409,7 @@ struct task_struct { | |||
1409 | #endif | 1409 | #endif |
1410 | 1410 | ||
1411 | /* Protection of the PI data structures: */ | 1411 | /* Protection of the PI data structures: */ |
1412 | spinlock_t pi_lock; | 1412 | raw_spinlock_t pi_lock; |
1413 | 1413 | ||
1414 | #ifdef CONFIG_RT_MUTEXES | 1414 | #ifdef CONFIG_RT_MUTEXES |
1415 | /* PI waiters blocked on a rt_mutex held by this task */ | 1415 | /* PI waiters blocked on a rt_mutex held by this task */ |
@@ -1446,8 +1446,10 @@ struct task_struct { | |||
1446 | gfp_t lockdep_reclaim_gfp; | 1446 | gfp_t lockdep_reclaim_gfp; |
1447 | #endif | 1447 | #endif |
1448 | 1448 | ||
1449 | #ifdef CONFIG_FS_JOURNAL_INFO | ||
1449 | /* journalling filesystem info */ | 1450 | /* journalling filesystem info */ |
1450 | void *journal_info; | 1451 | void *journal_info; |
1452 | #endif | ||
1451 | 1453 | ||
1452 | /* stacked block device info */ | 1454 | /* stacked block device info */ |
1453 | struct bio *bio_list, **bio_tail; | 1455 | struct bio *bio_list, **bio_tail; |
@@ -1542,6 +1544,14 @@ struct task_struct { | |||
1542 | unsigned long trace_recursion; | 1544 | unsigned long trace_recursion; |
1543 | #endif /* CONFIG_TRACING */ | 1545 | #endif /* CONFIG_TRACING */ |
1544 | unsigned long stack_start; | 1546 | unsigned long stack_start; |
1547 | #ifdef CONFIG_CGROUP_MEM_RES_CTLR /* memcg uses this to do batch job */ | ||
1548 | struct memcg_batch_info { | ||
1549 | int do_batch; /* incremented when batch uncharge started */ | ||
1550 | struct mem_cgroup *memcg; /* target memcg of uncharge */ | ||
1551 | unsigned long bytes; /* uncharged usage */ | ||
1552 | unsigned long memsw_bytes; /* uncharged mem+swap usage */ | ||
1553 | } memcg_batch; | ||
1554 | #endif | ||
1545 | }; | 1555 | }; |
1546 | 1556 | ||
1547 | /* Future-safe accessor for struct task_struct's cpus_allowed. */ | 1557 | /* Future-safe accessor for struct task_struct's cpus_allowed. */ |
@@ -2073,7 +2083,6 @@ extern int kill_proc_info(int, struct siginfo *, pid_t); | |||
2073 | extern int do_notify_parent(struct task_struct *, int); | 2083 | extern int do_notify_parent(struct task_struct *, int); |
2074 | extern void __wake_up_parent(struct task_struct *p, struct task_struct *parent); | 2084 | extern void __wake_up_parent(struct task_struct *p, struct task_struct *parent); |
2075 | extern void force_sig(int, struct task_struct *); | 2085 | extern void force_sig(int, struct task_struct *); |
2076 | extern void force_sig_specific(int, struct task_struct *); | ||
2077 | extern int send_sig(int, struct task_struct *, int); | 2086 | extern int send_sig(int, struct task_struct *, int); |
2078 | extern void zap_other_threads(struct task_struct *p); | 2087 | extern void zap_other_threads(struct task_struct *p); |
2079 | extern struct sigqueue *sigqueue_alloc(void); | 2088 | extern struct sigqueue *sigqueue_alloc(void); |
@@ -2092,11 +2101,6 @@ static inline int kill_cad_pid(int sig, int priv) | |||
2092 | #define SEND_SIG_PRIV ((struct siginfo *) 1) | 2101 | #define SEND_SIG_PRIV ((struct siginfo *) 1) |
2093 | #define SEND_SIG_FORCED ((struct siginfo *) 2) | 2102 | #define SEND_SIG_FORCED ((struct siginfo *) 2) |
2094 | 2103 | ||
2095 | static inline int is_si_special(const struct siginfo *info) | ||
2096 | { | ||
2097 | return info <= SEND_SIG_FORCED; | ||
2098 | } | ||
2099 | |||
2100 | /* | 2104 | /* |
2101 | * True if we are on the alternate signal stack. | 2105 | * True if we are on the alternate signal stack. |
2102 | */ | 2106 | */ |