Skip to content

Commit b6da007

Browse files
committed
Merge branch 'akpm' (patchbomb from Andrew)
Merge first patchbomb from Andrew Morton: - a few minor cifs fixes - dma-debug upadtes - ocfs2 - slab - about half of MM - procfs - kernel/exit.c - panic.c tweaks - printk upates - lib/ updates - checkpatch updates - fs/binfmt updates - the drivers/rtc tree - nilfs - kmod fixes - more kernel/exit.c - various other misc tweaks and fixes * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (190 commits) exit: pidns: fix/update the comments in zap_pid_ns_processes() exit: pidns: alloc_pid() leaks pid_namespace if child_reaper is exiting exit: exit_notify: re-use "dead" list to autoreap current exit: reparent: call forget_original_parent() under tasklist_lock exit: reparent: avoid find_new_reaper() if no children exit: reparent: introduce find_alive_thread() exit: reparent: introduce find_child_reaper() exit: reparent: document the ->has_child_subreaper checks exit: reparent: s/while_each_thread/for_each_thread/ in find_new_reaper() exit: reparent: fix the cross-namespace PR_SET_CHILD_SUBREAPER reparenting exit: reparent: fix the dead-parent PR_SET_CHILD_SUBREAPER reparenting exit: proc: don't try to flush /proc/tgid/task/tgid exit: release_task: fix the comment about group leader accounting exit: wait: drop tasklist_lock before psig->c* accounting exit: wait: don't use zombie->real_parent exit: wait: cleanup the ptrace_reparented() checks usermodehelper: kill the kmod_thread_locker logic usermodehelper: don't use CLONE_VFORK for ____call_usermodehelper() fs/hfs/catalog.c: fix comparison bug in hfs_cat_keycmp nilfs2: fix the nilfs_iget() vs. nilfs_new_inode() races ...
2 parents cbfe0de + a53b831 commit b6da007

142 files changed

Lines changed: 3656 additions & 3941 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/cgroups/hugetlb.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Brief summary of control files
2929

3030
hugetlb.<hugepagesize>.limit_in_bytes # set/show limit of "hugepagesize" hugetlb usage
3131
hugetlb.<hugepagesize>.max_usage_in_bytes # show max "hugepagesize" hugetlb usage recorded
32-
hugetlb.<hugepagesize>.usage_in_bytes # show current res_counter usage for "hugepagesize" hugetlb
32+
hugetlb.<hugepagesize>.usage_in_bytes # show current usage for "hugepagesize" hugetlb
3333
hugetlb.<hugepagesize>.failcnt # show the number of allocation failure due to HugeTLB limit
3434

3535
For a system supporting two hugepage size (16M and 16G) the control

‎Documentation/cgroups/memory.txt‎

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
Memory Resource Controller
22

3+
NOTE: This document is hopelessly outdated and it asks for a complete
4+
rewrite. It still contains a useful information so we are keeping it
5+
here but make sure to check the current code if you need a deeper
6+
understanding.
7+
38
NOTE: The Memory Resource Controller has generically been referred to as the
49
memory controller in this document. Do not confuse memory controller
510
used here with the memory controller that is used in hardware.
@@ -52,9 +57,9 @@ Brief summary of control files.
5257
tasks # attach a task(thread) and show list of threads
5358
cgroup.procs # show list of processes
5459
cgroup.event_control # an interface for event_fd()
55-
memory.usage_in_bytes # show current res_counter usage for memory
60+
memory.usage_in_bytes # show current usage for memory
5661
(See 5.5 for details)
57-
memory.memsw.usage_in_bytes # show current res_counter usage for memory+Swap
62+
memory.memsw.usage_in_bytes # show current usage for memory+Swap
5863
(See 5.5 for details)
5964
memory.limit_in_bytes # set/show limit of memory usage
6065
memory.memsw.limit_in_bytes # set/show limit of memory+Swap usage
@@ -116,16 +121,16 @@ The memory controller is the first controller developed.
116121

117122
2.1. Design
118123

119-
The core of the design is a counter called the res_counter. The res_counter
120-
tracks the current memory usage and limit of the group of processes associated
121-
with the controller. Each cgroup has a memory controller specific data
122-
structure (mem_cgroup) associated with it.
124+
The core of the design is a counter called the page_counter. The
125+
page_counter tracks the current memory usage and limit of the group of
126+
processes associated with the controller. Each cgroup has a memory controller
127+
specific data structure (mem_cgroup) associated with it.
123128

124129
2.2. Accounting
125130

126131
+--------------------+
127-
| mem_cgroup |
128-
| (res_counter) |
132+
| mem_cgroup |
133+
| (page_counter) |
129134
+--------------------+
130135
/ ^ \
131136
/ | \
@@ -352,9 +357,8 @@ set:
352357
0. Configuration
353358

354359
a. Enable CONFIG_CGROUPS
355-
b. Enable CONFIG_RESOURCE_COUNTERS
356-
c. Enable CONFIG_MEMCG
357-
d. Enable CONFIG_MEMCG_SWAP (to use swap extension)
360+
b. Enable CONFIG_MEMCG
361+
c. Enable CONFIG_MEMCG_SWAP (to use swap extension)
358362
d. Enable CONFIG_MEMCG_KMEM (to use kmem extension)
359363

360364
1. Prepare the cgroups (see cgroups.txt, Why are cgroups needed?)

‎Documentation/cgroups/resource_counter.txt‎

Lines changed: 0 additions & 197 deletions
This file was deleted.

‎Documentation/devicetree/bindings/rtc/rtc-omap.txt‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,17 @@ Required properties:
55
- "ti,da830-rtc" - for RTC IP used similar to that on DA8xx SoC family.
66
- "ti,am3352-rtc" - for RTC IP used similar to that on AM335x SoC family.
77
This RTC IP has special WAKE-EN Register to enable
8-
Wakeup generation for event Alarm.
8+
Wakeup generation for event Alarm. It can also be
9+
used to control an external PMIC via the
10+
pmic_power_en pin.
911
- reg: Address range of rtc register set
1012
- interrupts: rtc timer, alarm interrupts in order
1113
- interrupt-parent: phandle for the interrupt controller
1214

15+
Optional properties:
16+
- system-power-controller: whether the rtc is controlling the system power
17+
through pmic_power_en
18+
1319
Example:
1420

1521
rtc@1c23000 {
@@ -18,4 +24,5 @@ rtc@1c23000 {
1824
interrupts = <19
1925
19>;
2026
interrupt-parent = <&intc>;
27+
system-power-controller;
2128
};

‎Documentation/devicetree/bindings/vendor-prefixes.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ nxp NXP Semiconductors
115115
onnn ON Semiconductor Corp.
116116
opencores OpenCores.org
117117
panasonic Panasonic Corporation
118+
pericom Pericom Technology Inc.
118119
phytec PHYTEC Messtechnik GmbH
119120
picochip Picochip Ltd
120121
plathome Plat'Home Co., Ltd.

‎Documentation/kdump/kdump.txt‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,13 @@ format. Crash is available on Dave Anderson's site at the following URL:
471471

472472
http://people.redhat.com/~anderson/
473473

474+
Trigger Kdump on WARN()
475+
=======================
476+
477+
The kernel parameter, panic_on_warn, calls panic() in all WARN() paths. This
478+
will cause a kdump to occur at the panic() call. In cases where a user wants
479+
to specify this during runtime, /proc/sys/kernel/panic_on_warn can be set to 1
480+
to achieve the same behaviour.
474481

475482
Contact
476483
=======

‎Documentation/kernel-parameters.txt‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2509,6 +2509,9 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
25092509
timeout < 0: reboot immediately
25102510
Format: <timeout>
25112511

2512+
panic_on_warn panic() instead of WARN(). Useful to cause kdump
2513+
on a WARN().
2514+
25122515
crash_kexec_post_notifiers
25132516
Run kdump after running panic-notifiers and dumping
25142517
kmsg. This only for the users who doubt kdump always

‎Documentation/sysctl/kernel.txt‎

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,9 @@ show up in /proc/sys/kernel:
5454
- overflowuid
5555
- panic
5656
- panic_on_oops
57-
- panic_on_unrecovered_nmi
5857
- panic_on_stackoverflow
58+
- panic_on_unrecovered_nmi
59+
- panic_on_warn
5960
- pid_max
6061
- powersave-nap [ PPC only ]
6162
- printk
@@ -527,19 +528,6 @@ the recommended setting is 60.
527528

528529
==============================================================
529530

530-
panic_on_unrecovered_nmi:
531-
532-
The default Linux behaviour on an NMI of either memory or unknown is
533-
to continue operation. For many environments such as scientific
534-
computing it is preferable that the box is taken out and the error
535-
dealt with than an uncorrected parity/ECC error get propagated.
536-
537-
A small number of systems do generate NMI's for bizarre random reasons
538-
such as power management so the default is off. That sysctl works like
539-
the existing panic controls already in that directory.
540-
541-
==============================================================
542-
543531
panic_on_oops:
544532

545533
Controls the kernel's behaviour when an oops or BUG is encountered.
@@ -563,6 +551,30 @@ This file shows up if CONFIG_DEBUG_STACKOVERFLOW is enabled.
563551

564552
==============================================================
565553

554+
panic_on_unrecovered_nmi:
555+
556+
The default Linux behaviour on an NMI of either memory or unknown is
557+
to continue operation. For many environments such as scientific
558+
computing it is preferable that the box is taken out and the error
559+
dealt with than an uncorrected parity/ECC error get propagated.
560+
561+
A small number of systems do generate NMI's for bizarre random reasons
562+
such as power management so the default is off. That sysctl works like
563+
the existing panic controls already in that directory.
564+
565+
==============================================================
566+
567+
panic_on_warn:
568+
569+
Calls panic() in the WARN() path when set to 1. This is useful to avoid
570+
a kernel rebuild when attempting to kdump at the location of a WARN().
571+
572+
0: only WARN(), default behaviour.
573+
574+
1: call panic() after printing out WARN() location.
575+
576+
==============================================================
577+
566578
perf_cpu_time_max_percent:
567579

568580
Hints to the kernel how much CPU time it should be allowed to

0 commit comments

Comments
 (0)