diff options
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index c15936fe998b..781abd137673 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h | |||
@@ -99,6 +99,7 @@ struct robust_list_head; | |||
99 | struct bio_list; | 99 | struct bio_list; |
100 | struct fs_struct; | 100 | struct fs_struct; |
101 | struct perf_event_context; | 101 | struct perf_event_context; |
102 | struct blk_plug; | ||
102 | 103 | ||
103 | /* | 104 | /* |
104 | * List of flags we want to share for kernel threads, | 105 | * List of flags we want to share for kernel threads, |
@@ -516,7 +517,7 @@ struct thread_group_cputimer { | |||
516 | struct autogroup; | 517 | struct autogroup; |
517 | 518 | ||
518 | /* | 519 | /* |
519 | * NOTE! "signal_struct" does not have it's own | 520 | * NOTE! "signal_struct" does not have its own |
520 | * locking, because a shared signal_struct always | 521 | * locking, because a shared signal_struct always |
521 | * implies a shared sighand_struct, so locking | 522 | * implies a shared sighand_struct, so locking |
522 | * sighand_struct is always a proper superset of | 523 | * sighand_struct is always a proper superset of |
@@ -853,7 +854,7 @@ extern int __weak arch_sd_sibiling_asym_packing(void); | |||
853 | 854 | ||
854 | /* | 855 | /* |
855 | * Optimise SD flags for power savings: | 856 | * Optimise SD flags for power savings: |
856 | * SD_BALANCE_NEWIDLE helps agressive task consolidation and power savings. | 857 | * SD_BALANCE_NEWIDLE helps aggressive task consolidation and power savings. |
857 | * Keep default SD flags if sched_{smt,mc}_power_saving=0 | 858 | * Keep default SD flags if sched_{smt,mc}_power_saving=0 |
858 | */ | 859 | */ |
859 | 860 | ||
@@ -1253,6 +1254,9 @@ struct task_struct { | |||
1253 | #endif | 1254 | #endif |
1254 | 1255 | ||
1255 | struct mm_struct *mm, *active_mm; | 1256 | struct mm_struct *mm, *active_mm; |
1257 | #ifdef CONFIG_COMPAT_BRK | ||
1258 | unsigned brk_randomized:1; | ||
1259 | #endif | ||
1256 | #if defined(SPLIT_RSS_COUNTING) | 1260 | #if defined(SPLIT_RSS_COUNTING) |
1257 | struct task_rss_stat rss_stat; | 1261 | struct task_rss_stat rss_stat; |
1258 | #endif | 1262 | #endif |
@@ -1428,6 +1432,11 @@ struct task_struct { | |||
1428 | /* stacked block device info */ | 1432 | /* stacked block device info */ |
1429 | struct bio_list *bio_list; | 1433 | struct bio_list *bio_list; |
1430 | 1434 | ||
1435 | #ifdef CONFIG_BLOCK | ||
1436 | /* stack plugging */ | ||
1437 | struct blk_plug *plug; | ||
1438 | #endif | ||
1439 | |||
1431 | /* VM state */ | 1440 | /* VM state */ |
1432 | struct reclaim_state *reclaim_state; | 1441 | struct reclaim_state *reclaim_state; |
1433 | 1442 | ||
@@ -1471,6 +1480,7 @@ struct task_struct { | |||
1471 | #ifdef CONFIG_NUMA | 1480 | #ifdef CONFIG_NUMA |
1472 | struct mempolicy *mempolicy; /* Protected by alloc_lock */ | 1481 | struct mempolicy *mempolicy; /* Protected by alloc_lock */ |
1473 | short il_next; | 1482 | short il_next; |
1483 | short pref_node_fork; | ||
1474 | #endif | 1484 | #endif |
1475 | atomic_t fs_excl; /* holding fs exclusive resources */ | 1485 | atomic_t fs_excl; /* holding fs exclusive resources */ |
1476 | struct rcu_head rcu; | 1486 | struct rcu_head rcu; |
@@ -1523,10 +1533,13 @@ struct task_struct { | |||
1523 | struct memcg_batch_info { | 1533 | struct memcg_batch_info { |
1524 | int do_batch; /* incremented when batch uncharge started */ | 1534 | int do_batch; /* incremented when batch uncharge started */ |
1525 | struct mem_cgroup *memcg; /* target memcg of uncharge */ | 1535 | struct mem_cgroup *memcg; /* target memcg of uncharge */ |
1526 | unsigned long bytes; /* uncharged usage */ | 1536 | unsigned long nr_pages; /* uncharged usage */ |
1527 | unsigned long memsw_bytes; /* uncharged mem+swap usage */ | 1537 | unsigned long memsw_nr_pages; /* uncharged mem+swap usage */ |
1528 | } memcg_batch; | 1538 | } memcg_batch; |
1529 | #endif | 1539 | #endif |
1540 | #ifdef CONFIG_HAVE_HW_BREAKPOINT | ||
1541 | atomic_t ptrace_bp_refcnt; | ||
1542 | #endif | ||
1530 | }; | 1543 | }; |
1531 | 1544 | ||
1532 | /* Future-safe accessor for struct task_struct's cpus_allowed. */ | 1545 | /* Future-safe accessor for struct task_struct's cpus_allowed. */ |