The patch titled Subject: lib-optimize-cpumask_local_spread-v3-fix has been added to the -mm tree. Its filename is lib-optimize-cpumask_local_spread-v3-fix.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/lib-optimize-cpumask_local_spread-v3-fix.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/lib-optimize-cpumask_local_spread-v3-fix.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> Subject: lib-optimize-cpumask_local_spread-v3-fix make spread_lock local to cpumask_local_spread() Cc: Anshuman Khandual <anshuman.khandual@xxxxxxx> Cc: Michael Ellerman <mpe@xxxxxxxxxxxxxx> Cc: Michal Hocko <mhocko@xxxxxxxx> Cc: Mike Rapoport <rppt@xxxxxxxxxxxxx> Cc: Paul Burton <paul.burton@xxxxxxxx> Cc: Shaokun Zhang <zhangshaokun@xxxxxxxxxxxxx> Cc: yuqi jin <jinyuqi@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- lib/cpumask.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/lib/cpumask.c~lib-optimize-cpumask_local_spread-v3-fix +++ a/lib/cpumask.c @@ -254,7 +254,6 @@ static unsigned int __cpumask_local_spre BUG(); } -static DEFINE_SPINLOCK(spread_lock); /** * cpumask_local_spread - select the i'th cpu with local numa cpu's first * @i: index number @@ -270,6 +269,7 @@ unsigned int cpumask_local_spread(unsign { static int node_dist[MAX_NUMNODES]; static bool used[MAX_NUMNODES]; + static DEFINE_SPINLOCK(spread_lock); unsigned long flags; int cpu, j, id; _ Patches currently in -mm which might be from akpm@xxxxxxxxxxxxxxxxxxxx are mm.patch mm-swap-disallow-swapon-on-zoned-block-devices-fix.patch rss_stat-add-support-to-detect-rss-updates-of-external-mm-fix.patch mm-pgmap-use-correct-alignment-when-looking-at-first-pfn-from-a-region-checkpatch-fixes.patch mm-introduce-reported-pages-fix.patch mm-oom-avoid-printk-iteration-under-rcu-fix.patch hugetlb-remove-duplicated-code-checkpatch-fixes.patch hugetlb-remove-unused-hstate-in-hugetlb_fault_mutex_hash-fix.patch mm-madvise-replace-with-page_size-in-madvise_inject_error-fix.patch mm-annotate-refault-stalls-from-swap_readpage-fix.patch lib-optimize-cpumask_local_spread-v3-fix.patch usb-kcov-collect-coverage-from-hub_event-fix.patch linux-next-rejects.patch diff-sucks.patch drivers-block-null_blk_mainc-fix-layout.patch drivers-block-null_blk_mainc-fix-uninitialized-var-warnings.patch bitops-introduce-the-for_each_set_clump8-macro-fix-fix.patch drivers-tty-serial-sh-scic-suppress-warning.patch kernel-forkc-export-kernel_thread-to-modules.patch