Skip to content

Commit 04b5da4

Browse files
committed
Merge branch 'akpm' (patches from Andrew Morton)
Merge fixes from Andrew Morton: "The nmi patch and watchdog patch aren't actually fixes - they're features which needed a few last-minutes touchups. Otherwise, a rather large batch of fixes - ocfs2 review takes a while and I got distracted and missed last week's batch" * emailed patches from Andrew Morton <akpm@linux-foundation.org>: (31 commits) ocfs2/dlm: do not purge lockres that is queued for assert master ocfs2: do not return DLM_MIGRATE_RESPONSE_MASTERY_REF to avoid endless,loop during umount ocfs2: manually do the iput once ocfs2_add_entry failed in ocfs2_symlink and ocfs2_mknod ocfs2: fix a tiny race when running dirop_fileop_racer ocfs2/dlm: fix misuse of list_move_tail() in dlm_run_purge_list() ocfs2: refcount: take rw_lock in ocfs2_reflink ocfs2: revert "ocfs2: fix NULL pointer dereference when dismount and ocfs2rec simultaneously" ocfs2: fix deadlock when two nodes are converting same lock from PR to EX and idletimeout closes conn ocfs2: should add inode into orphan dir after updating entry in ocfs2_rename() mm: fix crashes from mbind() merging vmas checkpatch: reduce false positives when checking void function return statements ia64: arch/ia64/include/uapi/asm/fcntl.h needs personality.h DMA, CMA: fix possible memory leak slab: fix oops when reading /proc/slab_allocators shmem: fix faulting into a hole while it's punched mm: let mm_find_pmd fix buggy race with THP fault mm: thp: fix DEBUG_PAGEALLOC oops in copy_page_rep() kernel/watchdog.c: print traces for all cpus on lockup detection nmi: provide the option to issue an NMI back trace to every cpu but current Documentation/accounting/getdelays.c: add missing null-terminate after strncpy call ...
2 parents a497c3b + ac4fef4 commit 04b5da4

41 files changed

Lines changed: 703 additions & 189 deletions

Some content is hidden

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

‎CREDITS‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,10 @@
99
Linus
1010
----------
1111

12+
M: Matt Mackal
13+
E: mpm@selenic.com
14+
D: SLOB slab allocator
15+
1216
N: Matti Aarnio
1317
E: mea@nic.funet.fi
1418
D: Alpha systems hacking, IPv6 and other network related stuff

‎Documentation/accounting/getdelays.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,7 @@ int main(int argc, char *argv[])
314314
break;
315315
case 'm':
316316
strncpy(cpumask, optarg, sizeof(cpumask));
317+
cpumask[sizeof(cpumask) - 1] = '\0';
317318
maskset = 1;
318319
printf("cpumask %s maskset %d\n", cpumask, maskset);
319320
break;

‎Documentation/kernel-parameters.txt‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3130,6 +3130,11 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
31303130
[KNL] Should the soft-lockup detector generate panics.
31313131
Format: <integer>
31323132

3133+
softlockup_all_cpu_backtrace=
3134+
[KNL] Should the soft-lockup detector generate
3135+
backtraces on all cpus.
3136+
Format: <integer>
3137+
31333138
sonypi.*= [HW] Sony Programmable I/O Control Device driver
31343139
See Documentation/laptops/sonypi.txt
31353140

‎Documentation/memory-hotplug.txt‎

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -209,15 +209,12 @@ If memory device is found, memory hotplug code will be called.
209209

210210
4.2 Notify memory hot-add event by hand
211211
------------
212-
On powerpc, the firmware does not notify a memory hotplug event to the kernel.
213-
Therefore, "probe" interface is supported to notify the event to the kernel.
214-
This interface depends on CONFIG_ARCH_MEMORY_PROBE.
215-
216-
CONFIG_ARCH_MEMORY_PROBE is supported on powerpc only. On x86, this config
217-
option is disabled by default since ACPI notifies a memory hotplug event to
218-
the kernel, which performs its hotplug operation as the result. Please
219-
enable this option if you need the "probe" interface for testing purposes
220-
on x86.
212+
On some architectures, the firmware may not notify the kernel of a memory
213+
hotplug event. Therefore, the memory "probe" interface is supported to
214+
explicitly notify the kernel. This interface depends on
215+
CONFIG_ARCH_MEMORY_PROBE and can be configured on powerpc, sh, and x86
216+
if hotplug is supported, although for x86 this should be handled by ACPI
217+
notification.
221218

222219
Probe interface is located at
223220
/sys/devices/system/memory/probe

‎Documentation/sysctl/kernel.txt‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ show up in /proc/sys/kernel:
7575
- shmall
7676
- shmmax [ sysv ipc ]
7777
- shmmni
78+
- softlockup_all_cpu_backtrace
7879
- stop-a [ SPARC only ]
7980
- sysrq ==> Documentation/sysrq.txt
8081
- sysctl_writes_strict
@@ -783,6 +784,22 @@ via the /proc/sys interface:
783784

784785
==============================================================
785786

787+
softlockup_all_cpu_backtrace:
788+
789+
This value controls the soft lockup detector thread's behavior
790+
when a soft lockup condition is detected as to whether or not
791+
to gather further debug information. If enabled, each cpu will
792+
be issued an NMI and instructed to capture stack trace.
793+
794+
This feature is only applicable for architectures which support
795+
NMI.
796+
797+
0: do nothing. This is the default behavior.
798+
799+
1: on detection capture more debug information.
800+
801+
==============================================================
802+
786803
tainted:
787804

788805
Non-zero if the kernel has been tainted. Numeric values, which

‎Documentation/sysctl/vm.txt‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -702,7 +702,8 @@ The batch value of each per cpu pagelist is also updated as a result. It is
702702
set to pcp->high/4. The upper limit of batch is (PAGE_SHIFT * 8)
703703

704704
The initial value is zero. Kernel does not use this value at boot time to set
705-
the high water marks for each per cpu page list.
705+
the high water marks for each per cpu page list. If the user writes '0' to this
706+
sysctl, it will revert to this default behavior.
706707

707708
==============================================================
708709

‎MAINTAINERS‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8196,13 +8196,15 @@ S: Maintained
81968196
F: drivers/usb/misc/sisusbvga/
81978197

81988198
SLAB ALLOCATOR
8199-
M: Christoph Lameter <cl@linux-foundation.org>
8199+
M: Christoph Lameter <cl@linux.com>
82008200
M: Pekka Enberg <penberg@kernel.org>
8201-
M: Matt Mackall <mpm@selenic.com>
8201+
M: David Rientjes <rientjes@google.com>
8202+
M: Joonsoo Kim <iamjoonsoo.kim@lge.com>
8203+
M: Andrew Morton <akpm@linux-foundation.org>
82028204
L: linux-mm@kvack.org
82038205
S: Maintained
82048206
F: include/linux/sl?b*.h
8205-
F: mm/sl?b.c
8207+
F: mm/sl?b*
82068208

82078209
SLEEPABLE READ-COPY UPDATE (SRCU)
82088210
M: Lai Jiangshan <laijs@cn.fujitsu.com>

‎arch/ia64/include/uapi/asm/fcntl.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#define force_o_largefile() \
99
(personality(current->personality) != PER_LINUX32)
1010

11+
#include <linux/personality.h>
1112
#include <asm-generic/fcntl.h>
1213

1314
#endif /* _ASM_IA64_FCNTL_H */

‎arch/sparc/include/asm/irq_64.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ static inline unsigned long get_softint(void)
8989
return retval;
9090
}
9191

92-
void arch_trigger_all_cpu_backtrace(void);
92+
void arch_trigger_all_cpu_backtrace(bool);
9393
#define arch_trigger_all_cpu_backtrace arch_trigger_all_cpu_backtrace
9494

9595
extern void *hardirq_stack[NR_CPUS];

‎arch/sparc/kernel/process_64.c‎

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ static void __global_reg_poll(struct global_reg_snapshot *gp)
239239
}
240240
}
241241

242-
void arch_trigger_all_cpu_backtrace(void)
242+
void arch_trigger_all_cpu_backtrace(bool include_self)
243243
{
244244
struct thread_info *tp = current_thread_info();
245245
struct pt_regs *regs = get_irq_regs();
@@ -251,16 +251,22 @@ void arch_trigger_all_cpu_backtrace(void)
251251

252252
spin_lock_irqsave(&global_cpu_snapshot_lock, flags);
253253

254-
memset(global_cpu_snapshot, 0, sizeof(global_cpu_snapshot));
255-
256254
this_cpu = raw_smp_processor_id();
257255

258-
__global_reg_self(tp, regs, this_cpu);
256+
memset(global_cpu_snapshot, 0, sizeof(global_cpu_snapshot));
257+
258+
if (include_self)
259+
__global_reg_self(tp, regs, this_cpu);
259260

260261
smp_fetch_global_regs();
261262

262263
for_each_online_cpu(cpu) {
263-
struct global_reg_snapshot *gp = &global_cpu_snapshot[cpu].reg;
264+
struct global_reg_snapshot *gp;
265+
266+
if (!include_self && cpu == this_cpu)
267+
continue;
268+
269+
gp = &global_cpu_snapshot[cpu].reg;
264270

265271
__global_reg_poll(gp);
266272

@@ -292,7 +298,7 @@ void arch_trigger_all_cpu_backtrace(void)
292298

293299
static void sysrq_handle_globreg(int key)
294300
{
295-
arch_trigger_all_cpu_backtrace();
301+
arch_trigger_all_cpu_backtrace(true);
296302
}
297303

298304
static struct sysrq_key_op sparc_globalreg_op = {

0 commit comments

Comments
 (0)