Re: [PATCH -v2 -mm] memcg: do not trigger OOM from add_to_page_cache_locked

2012-11-27 Thread Michal Hocko
Sorry, forgot to about one shmem charge: --- >From 7ae29927d24471c1b1a6ceb021219c592c1ef518 Mon Sep 17 00:00:00 2001 From: Michal Hocko Date: Tue, 27 Nov 2012 21:53:13 +0100 Subject: [PATCH] memcg: do not trigger OOM from add_to_page_cache_locked memcg oom killer might deadlock if the process whi

Re: [PATCH 2/5] Expand the steal time msr to also contain the consigned time.

2012-11-27 Thread Konrad Rzeszutek Wilk
On Mon, Nov 26, 2012 at 02:36:45PM -0600, Michael Wolf wrote: > Add a consigned field. This field will hold the time lost due to capping or > overcommit. > The rest of the time will still show up in the steal-time field. > > Signed-off-by: Michael Wolf > --- > arch/x86/include/asm/paravirt.h

[PATCH] mm, soft offline: split thp at the beginning of soft_offline_page()

2012-11-27 Thread Naoya Horiguchi
When we try to soft-offline a thp tail page, put_page() is called on the tail page unthinkingly and VM_BUG_ON is triggered in put_compound_page(). This patch splits thp before going into the main body of soft-offlining. The interface of soft-offlining is open for userspace, so this bug can lead to

Re: [PATCH] mm, soft offline: split thp at the beginning of soft_offline_page()

2012-11-27 Thread Andi Kleen
Naoya Horiguchi writes: > When we try to soft-offline a thp tail page, put_page() is called on the > tail page unthinkingly and VM_BUG_ON is triggered in put_compound_page(). > This patch splits thp before going into the main body of soft-offlining. Looks good. > > The interface of soft-offlini

Re: linux-next: Tree for Nov 27 (file notify)

2012-11-27 Thread Eric Paris
On Tue, 2012-11-27 at 08:43 -0800, Randy Dunlap wrote: > On 11/26/2012 10:25 PM, Stephen Rothwell wrote: > > > Hi all, > > > > Changes since 20121126: > > > > > when CONFIG_PROC_FS is not enabled (also seen in mmotm): > > fs/notify/fanotify/fanotify_user.c:436:17: error: 'fanotify_show_fdinfo

Re: linux-next: Tree for Nov 27 (file notify)

2012-11-27 Thread Stephen Rothwell
[Just adding some more cc's] On Tue, 27 Nov 2012 08:43:43 -0800 Randy Dunlap wrote: > > On 11/26/2012 10:25 PM, Stephen Rothwell wrote: > > > Hi all, > > > > Changes since 20121126: > > > > > when CONFIG_PROC_FS is not enabled (also seen in mmotm): > > fs/notify/fanotify/fanotify_user.c:436

Re: [PATCH 1/1] mm: Export a function to get vm committed memory

2012-11-27 Thread Konrad Rzeszutek Wilk
On Tue, Nov 13, 2012 at 01:07:30PM -0800, David Rientjes wrote: > On Tue, 13 Nov 2012, K. Y. Srinivasan wrote: > > > It will be useful to be able to access global memory commitment from device > > drivers. On the Hyper-V platform, the host has a policy engine to balance > > the available physical

Re: [PATCH v6 2/6] PM / Runtime: introduce pm_runtime_set_memalloc_noio()

2012-11-27 Thread Rafael J. Wysocki
On Saturday, November 24, 2012 08:59:14 PM Ming Lei wrote: > The patch introduces the flag of memalloc_noio in 'struct dev_pm_info' > to help PM core to teach mm not allocating memory with GFP_KERNEL > flag for avoiding probable deadlock. > > As explained in the comment, any GFP_KERNEL allocation

kernel BUG at mm/huge_memory.c:212!

2012-11-27 Thread Jiri Slaby
Hi, I've hit BUG_ON(atomic_dec_and_test(&huge_zero_refcount)) in put_huge_zero_page right now. There are some "Bad rss-counter state" before that, but those are perhaps unrelated as I saw many of them in the previous -next. But even with yesterday's next I got the BUG. [ 7395.654928] BUG: Bad rss

Re: kswapd craziness in 3.7

2012-11-27 Thread Rik van Riel
On 11/27/2012 03:58 PM, Linus Torvalds wrote: Note that in the meantime, I've also applied (through Andrew) the patch that reverts commit c654345924f7 (see commit 82b212f40059 'Revert "mm: remove __GFP_NO_KSWAPD"'). I wonder if that revert may be bogus, and a result of this same issue. Maybe tha

Re: [PATCH v8 00/46] x86, mm: map ram from top-down with BRK and memblock.

2012-11-27 Thread Konrad Rzeszutek Wilk
On Fri, Nov 16, 2012 at 07:38:37PM -0800, Yinghai Lu wrote: > rebase patchset together tip/x86/mm2 on top of linus v3.7-rc4 > Pardon me for taking so long to respond. Right after you posted it I had a mini-conference and then vacation and I am just now unburrying myself from email avalanche. I w

Re: [PATCH v6 5/6] PM / Runtime: force memory allocation with no I/O during Runtime PM callbcack

2012-11-27 Thread Rafael J. Wysocki
On Saturday, November 24, 2012 08:59:17 PM Ming Lei wrote: > This patch applies the introduced memalloc_noio_save() and > memalloc_noio_restore() to force memory allocation with no I/O > during runtime_resume/runtime_suspend callback on device with > the flag of 'memalloc_noio' set. > > Cc: Alan S

Re: [PATCH] ioat: remove chanerr mask setting for IOAT v3.x

2012-11-27 Thread Dave Jiang
On 11/26/2012 09:56 PM, Dan Williams wrote: > On Fri, Nov 16, 2012 at 3:26 PM, Dave Jiang wrote: >> The CHANERRMSK_INT register should be 0. The existing code set a value >> for a workaround to address a pre-silicon bug on the Intel 5520 IO hub that >> has been fixed when the hardware was released

Re: 3.7-rc6 soft lockup in kswapd0

2012-11-27 Thread George Spelvin
Mel Gorman wrote: > On Mon, Nov 26, 2012 at 01:53:17PM -0500, George Spelvin wrote: >> Johannes Weiner wrote: >>> Any chance you could test with this fix instead, in addition to Dave's >>> accounting fix? It's got bool and everything! > >> Okay. Mel, speak up if you object. I also rebased on

Re: Save PG_compound or PG_head value in VMCOREINFO

2012-11-27 Thread Eric W. Biederman
Petr Tesarik writes: > To allow filtering of huge pages, makedumpfile must be able to identify > them in the dump. This can be done by checking for the appropriate > page flag, so communicate its value to makedumpfile through the VMCOREINFO > interface. I don't have any siginificant problems wi

Re: [PATCH 2/8] mm: frontswap: lazy initialization to allow tmem backends to build/run as modules

2012-11-27 Thread Konrad Rzeszutek Wilk
On Mon, Nov 19, 2012 at 02:25:16PM -0800, Andrew Morton wrote: > On Mon, 19 Nov 2012 08:53:46 +0800 > Bob Liu wrote: > > > On Sat, Nov 17, 2012 at 7:16 AM, Andrew Morton > > wrote: > > > On Wed, 14 Nov 2012 13:57:06 -0500 > > > Konrad Rzeszutek Wilk wrote: > > > > > >> From: Dan Magenheimer >

Re: kswapd craziness in 3.7

2012-11-27 Thread Johannes Weiner
On Tue, Nov 27, 2012 at 12:58:18PM -0800, Linus Torvalds wrote: > Note that in the meantime, I've also applied (through Andrew) the > patch that reverts commit c654345924f7 (see commit 82b212f40059 > 'Revert "mm: remove __GFP_NO_KSWAPD"'). > > I wonder if that revert may be bogus, and a result of

Re: [PATCH RESEND] rtc: Add NXP PCF8523 support

2012-11-27 Thread Andrew Morton
On Fri, 23 Nov 2012 16:17:37 +0100 Thierry Reding wrote: > This commit adds an RTC driver for PCF8523 chips by NXP Semiconductors. > No support is currently provided for the alarm and interrupt functions. > Only the time and date functionality is implemented. > > ... > > +static int pcf8523_rtc_

Re: Alignment Issue with Direct IO to NVMe Drive

2012-11-27 Thread Matthew Wilcox
On Tue, Nov 27, 2012 at 09:47:48AM -0800, Laine Walker-Avina wrote: > On Tue, Nov 27, 2012 at 9:05 AM, Matthew Wilcox wrote: > > Laine, when this occurs, what is the alignment of 'offset' in the sg > > entry you're looking at? If userspace is passing in an unaligned address, > > I don't think the

Re: [PATCH] mm, soft offline: split thp at the beginning of soft_offline_page()

2012-11-27 Thread Naoya Horiguchi
On Tue, Nov 27, 2012 at 01:08:38PM -0800, Andi Kleen wrote: > Naoya Horiguchi writes: > > > When we try to soft-offline a thp tail page, put_page() is called on the > > tail page unthinkingly and VM_BUG_ON is triggered in put_compound_page(). > > This patch splits thp before going into the main b

Re: [PATCH v6 2/6] PM / Runtime: introduce pm_runtime_set_memalloc_noio()

2012-11-27 Thread Rafael J. Wysocki
On Tuesday, November 27, 2012 10:19:29 PM Rafael J. Wysocki wrote: > On Saturday, November 24, 2012 08:59:14 PM Ming Lei wrote: > > The patch introduces the flag of memalloc_noio in 'struct dev_pm_info' > > to help PM core to teach mm not allocating memory with GFP_KERNEL > > flag for avoiding prob

Re: kswapd craziness in 3.7

2012-11-27 Thread Johannes Weiner
On Tue, Nov 27, 2012 at 04:16:52PM -0500, Rik van Riel wrote: > On 11/27/2012 03:58 PM, Linus Torvalds wrote: > >Note that in the meantime, I've also applied (through Andrew) the > >patch that reverts commit c654345924f7 (see commit 82b212f40059 > >'Revert "mm: remove __GFP_NO_KSWAPD"'). > > > >I w

Re: [PATCH] mm, soft offline: split thp at the beginning of soft_offline_page()

2012-11-27 Thread Andrew Morton
On Tue, 27 Nov 2012 16:05:31 -0500 Naoya Horiguchi wrote: > When we try to soft-offline a thp tail page, put_page() is called on the > tail page unthinkingly and VM_BUG_ON is triggered in put_compound_page(). > This patch splits thp before going into the main body of soft-offlining. > > The inte

Re: memory allocation: smap large "Size", but unused

2012-11-27 Thread David Rientjes
On Tue, 27 Nov 2012, Bernd Schubert wrote: > I'm just investigating why a user space program has a rather large VmSize, but > small VmRSS size. Looking into /proc/$pid/smaps I notice several areas with an > size of about 64MB, but otherwise that area is unused. So far I did not find a > way how to

Re: [PATCH 1/5] cpufreq: handle SW coordinated CPUs

2012-11-27 Thread Rafael J. Wysocki
On Monday, November 26, 2012 05:39:52 PM Fabio Baltieri wrote: > From: Rickard Andersson > > This patch fixes a bug that occurred when we had load on a secondary CPU > and the primary CPU was sleeping. Only one sampling timer was spawned > and it was spawned as a deferred timer on the primary CPU

Re: [PATCH] cpufreq: ondemand: update sampling rate only on right CPUs

2012-11-27 Thread Rafael J. Wysocki
On Monday, November 26, 2012 07:10:12 PM Fabio Baltieri wrote: > Fix cpufreq_gov_ondemand to skip CPU where another governor is used. > > The bug present itself as NULL pointer access on the mutex_lock() call, > an can be reproduced on an SMP machine by setting the default governor > to anything o

Re: kswapd craziness in 3.7

2012-11-27 Thread Rik van Riel
On 11/27/2012 04:49 PM, Johannes Weiner wrote: On Tue, Nov 27, 2012 at 04:16:52PM -0500, Rik van Riel wrote: On 11/27/2012 03:58 PM, Linus Torvalds wrote: Note that in the meantime, I've also applied (through Andrew) the patch that reverts commit c654345924f7 (see commit 82b212f40059 'Revert "m

Re: [PATCH] nfsd4: remove state lock from nfs4_state_shutdown

2012-11-27 Thread J. Bruce Fields
OK, applying.--b. On Wed, Nov 21, 2012 at 06:07:38PM +0300, Stanislav Kinsbursky wrote: > Protection of __nfs4_state_shutdown() with nfs4_lock_state() looks redundant. > > This function is called by the last NFSd thread on it's exit and state lock > protects actually two functions (del_recall_lru

Re: [RFC PATCH v3 3/3] acpi_memhotplug: Allow eject to proceed on rebind scenario

2012-11-27 Thread Toshi Kani
On Tue, 2012-11-27 at 19:32 +0100, Vasilis Liaskovitis wrote: > On Mon, Nov 26, 2012 at 05:19:01PM -0700, Toshi Kani wrote: > > > >> Consider the following sequence of operations for a hotplugged memory > > > >> device: > > > >> > > > >> 1. echo "PNP0C80:XX" > /sys/bus/acpi/drivers/acpi_memhotplug/

Re: [PATCH] ARM: EXYNOS: Avoid early use of of_machine_is_compatible()

2012-11-27 Thread Olof Johansson
On Tue, Nov 27, 2012 at 11:53 AM, Doug Anderson wrote: > The recent commit "ARM: EXYNOS: add support for EXYNOS5440 SoC" broke > support for exynos5250 because of_machine_is_compatible() was used too > early in the boot process. It also probably meant that the exynos5440 > failed to use the prope

[PATCH v2] ioat: remove chanerr mask setting for IOAT v3.x

2012-11-27 Thread Dave Jiang
The existing code set a value in the PCI_CHANERRMSK_INT register for a workaround to address a pre-silicon bug on the Intel 5520 IO hub that has been fixed when the hardware was released. There is no need for this code. Signed-off-by: Dave Jiang --- drivers/dma/ioat/dma_v3.c |7 +-- 1 f

Re: [Patch v3 3/7] rtc: DA9055 RTC driver

2012-11-27 Thread Andrew Morton
On Fri, 23 Nov 2012 15:41:03 +0530 Ashish Jangam wrote: > On Tue, 2012-10-23 at 15:33 +0530, Ashish Jangam wrote: > > Does this patch looks good? > > On Thu, 2012-10-11 at 16:10 +0530, Ashish Jangam wrote: > > > This is the RTC patch for the DA9055 PMIC. This patch has got dependency > > > on >

Re: Alignment Issue with Direct IO to NVMe Drive

2012-11-27 Thread Laine Walker-Avina
On Tue, Nov 27, 2012 at 1:39 PM, Matthew Wilcox wrote: > On Tue, Nov 27, 2012 at 09:47:48AM -0800, Laine Walker-Avina wrote: >> On Tue, Nov 27, 2012 at 9:05 AM, Matthew Wilcox >> wrote: >> > Laine, when this occurs, what is the alignment of 'offset' in the sg >> > entry you're looking at? If us

Re: [PATCH] ARM: EXYNOS: Avoid early use of of_machine_is_compatible()

2012-11-27 Thread Kukjin Kim
On 11/28/12 07:11, Olof Johansson wrote: On Tue, Nov 27, 2012 at 11:53 AM, Doug Anderson wrote: The recent commit "ARM: EXYNOS: add support for EXYNOS5440 SoC" broke support for exynos5250 because of_machine_is_compatible() was used too early in the boot process. It also probably meant that th

Re: kswapd craziness in 3.7

2012-11-27 Thread Johannes Weiner
On Tue, Nov 27, 2012 at 05:02:36PM -0500, Rik van Riel wrote: > On 11/27/2012 04:49 PM, Johannes Weiner wrote: > >On Tue, Nov 27, 2012 at 04:16:52PM -0500, Rik van Riel wrote: > >>On 11/27/2012 03:58 PM, Linus Torvalds wrote: > >>>Note that in the meantime, I've also applied (through Andrew) the >

Re: [PATCH 0/5] nfsd: more NFSv4 state containerization

2012-11-27 Thread J. Bruce Fields
On Mon, Nov 26, 2012 at 03:21:49PM +0300, Stanislav Kinsbursky wrote: > This patch set makes NFSv4 state created and destroyed per net and thus > completes it's containerization (the only exceprtion is client_mutex, but this > one a hard nut to crack). > > Note: patch set depend on previously sent

Re: + mm-trace-filemap-add-and-del.patch added to -mm tree

2012-11-27 Thread Steven Rostedt
On Tue, 2012-11-27 at 14:15 -0800, a...@linux-foundation.org wrote: > The patch titled > Subject: mm: trace filemap add and del > has been added to the -mm tree. Its filename is > mm-trace-filemap-add-and-del.patch > > Before you just go and hit "reply", please: >a) Consider who els

[PATCH] solos-pci: Wait for pending TX to complete when releasing vcc

2012-11-27 Thread David Woodhouse
We should no longer be calling the old pop routine for the vcc, after vcc_release() has completed. Make sure we wait for any pending TX skbs to complete, by waiting for our own PKT_PCLOSE control skb to be sent. Signed-off-by: David Woodhouse --- On Tue, 2012-11-27 at 13:54 -0500, chas williams -

Re: [PATCH] ARM: EXYNOS: Avoid early use of of_machine_is_compatible()

2012-11-27 Thread Olof Johansson
On Tue, Nov 27, 2012 at 2:27 PM, Kukjin Kim wrote: > On 11/28/12 07:11, Olof Johansson wrote: >> >> On Tue, Nov 27, 2012 at 11:53 AM, Doug Anderson >> wrote: >>> >>> The recent commit "ARM: EXYNOS: add support for EXYNOS5440 SoC" broke >>> support for exynos5250 because of_machine_is_compatible()

Re: [PATCH] mm,vmscan: only loop back if compaction would fail in all zones

2012-11-27 Thread Valdis . Kletnieks
On Sun, 25 Nov 2012 23:10:41 -0500, Johannes Weiner said: > From: Johannes Weiner > Subject: [patch] mm: vmscan: fix endless loop in kswapd balancing > > Kswapd does not in all places have the same criteria for when it > considers a zone balanced. This leads to zones being not reclaimed > becaus

Re: [PATCH] mm, soft offline: split thp at the beginning of soft_offline_page()

2012-11-27 Thread Naoya Horiguchi
On Tue, Nov 27, 2012 at 01:54:58PM -0800, Andrew Morton wrote: > On Tue, 27 Nov 2012 16:05:31 -0500 > Naoya Horiguchi wrote: > > > When we try to soft-offline a thp tail page, put_page() is called on the > > tail page unthinkingly and VM_BUG_ON is triggered in put_compound_page(). > > This patch

Re: [PATCH] uio.c: Fix warning: 'ret' might be used uninitialized

2012-11-27 Thread Hans J. Koch
On Tue, Nov 27, 2012 at 01:48:14PM +0200, Vitalii Demianets wrote: > Fix warning: 'ret' might be used uninitialized > > Signed-off-by: Vitalii Demianets > --- > drivers/uio/uio.c | 16 > 1 files changed, 12 insertions(+), 4 deletions(-) > > diff --git a/drivers/uio/uio.c b/dr

Re: Your kernel commit 2f4f649a69a9eb51f6e98130e19dd90a260a4145

2012-11-27 Thread Daniel Vetter
On Tue, Nov 27, 2012 at 10:58 PM, Magnus R wrote: > I run the 3.7 release candidates on my retina Macbook Pro and starting with > rc6 the graphics have become garbled. I have narrowed it down to your above > mentioned commit in drivers/gpu/drm/i915/intel_display.c (when I revert that > commit the

Re: [patch -mm 4/4] docs: Add documentation about /proc//fdinfo/ output

2012-11-27 Thread Andrew Morton
On Fri, 23 Nov 2012 01:15:26 +0400 Cyrill Gorcunov wrote: > Documentation/filesystems/proc.txt | 81 > + Looks good to me. Here's a small tune-up: --- a/Documentation/filesystems/proc.txt~docs-add-documentation-about-proc-pid-fdinfo-fd-output-fix +++ a/D

Re: [RFC PATCH] Fix abnormal rcu dynticks_nesting values related to async page fault

2012-11-27 Thread Frederic Weisbecker
2012/11/27 Gleb Natapov : > What is the semantics of enter_idle()/exit_idle(), what are they used for? It's used by drivers/idle/i7300_idle.c for some tracking. I don't know much the details. enter_idle() is called right before the CPU is set to lower power mode: hlt() exit_idle() is called anyt

Re: [RFC PATCH] Fix abnormal rcu dynticks_nesting values related to async page fault

2012-11-27 Thread Frederic Weisbecker
2012/11/27 Frederic Weisbecker : > 2012/11/27 Gleb Natapov : >> What is the semantics of enter_idle()/exit_idle(), what are they used for? > > It's used by drivers/idle/i7300_idle.c for some tracking. I don't know much > the details. > > enter_idle() is called right before the CPU is set to lower p

Re: [RFC v2 8/8] drm: tegra: Add gr2d device

2012-11-27 Thread Dave Airlie
On Tue, Nov 27, 2012 at 9:31 PM, Terje Bergström wrote: > On 27.11.2012 12:37, Thierry Reding wrote: >> But in that case it should be made mandatory at first until proper IOMMU >> support is enabled on Tegra30. Then it can be checked at driver probe >> time whether or not to enable the extra check

Re: [PATCH] drivers/uio/uio_pdrv_genirq.c: Fix memory leak & confusing labels

2012-11-27 Thread Hans J. Koch
On Tue, Nov 27, 2012 at 07:29:32PM +0200, Vitalii Demianets wrote: > Memory leak was caused by jumping to the wrong exit label. So, it is good time > to improve misleading label names too. I agree that bad0, bad1, and bad2 are not the best choice for label names... I don't have any objections to y

Re: [RFC PATCH v3 1/3] acpi: Introduce prepare_remove operation in acpi_device_ops

2012-11-27 Thread Rafael J. Wysocki
On Monday, November 26, 2012 05:10:21 PM Toshi Kani wrote: > On Fri, 2012-11-23 at 18:50 +0100, Vasilis Liaskovitis wrote: > > This function should be registered for devices that need to execute some > > non-acpi related action in order to be safely removed. If this function > > returns zero, the a

[PATCH 06/19] list: add a new LRU list type

2012-11-27 Thread Dave Chinner
From: Dave Chinner Several subsystems use the same construct for LRU lists - a list head, a spin lock and and item count. They also use exactly the same code for adding and removing items from the LRU. Create a generic type for these LRU lists. This is the beginning of generic, node aware LRUs f

[PATCH 14/19] xfs: use generic AG walk for background inode reclaim

2012-11-27 Thread Dave Chinner
From: Dave Chinner The per-ag inode cache radix trees are not walked by the shrinkers any more, so there is no need for a special walker that contained heurisitcs to prevent multiple shrinker instances from colliding with each other. Hence we can just remote that and convert the code to use the g

[PATCH 18/19] shrinker: convert remaining shrinkers to count/scan API

2012-11-27 Thread Dave Chinner
From: Dave Chinner Convert the remaining couple of random shrinkers in the tree to the new API. Signed-off-by: Dave Chinner --- arch/x86/kvm/mmu.c | 35 +-- net/sunrpc/auth.c | 45 +++-- 2 files changed, 56 insertions

[PATCH 19/19] shrinker: Kill old ->shrink API.

2012-11-27 Thread Dave Chinner
From: Dave Chinner There are no more users of this API, so kill it dead, dead, dead and quietly bury the corpse in a shallow, unmarked grave in a dark forest deep in the hills... Signed-off-by: Dave Chinner --- include/linux/shrinker.h | 15 +-- include/trace/events/vmscan.h

[PATCH 10/19] shrinker: add node awareness

2012-11-27 Thread Dave Chinner
From: Dave Chinner Pass the node of the current zone being reclaimed to shrink_slab(), allowing the shrinker control nodemask to be set appropriately for node aware shrinkers. Signed-off-by: Dave Chinner --- fs/drop_caches.c |1 + include/linux/shrinker.h |3 +++ mm/memory-fail

[PATCH 13/19] xfs: Node aware direct inode reclaim

2012-11-27 Thread Dave Chinner
From: Dave Chinner XFS currently only tracks inodes for reclaim via tag bits in the inode cache radix tree. While this is awesome for background reclaim because it allows inodes to be reclaimed in ascending disk offset order, it sucks for direct memory reclaim which really is trying to free the o

linux-next: unusual update of the security tree

2012-11-27 Thread Stephen Rothwell
Hi James, The security tree (git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git#next) looks a bit strange today ... It appears to have been created by Casey Schaufler (cc'd) and contains some quite old commits and back merges of your tree. I *guess* you have merged in Casey'

[PATCH 17/19] drivers: convert shrinkers to new count/scan API

2012-11-27 Thread Dave Chinner
From: Dave Chinner Convert the driver shrinkers to the new API. Most changes are compile tested only because I either don't have the hardware or it's staging stuff. FWIW, the md and android code is pretty good, but the rest of it makes me want to claw my eyes out. The amount of broken code I ju

[PATCH 01/19] dcache: convert dentry_stat.nr_unused to per-cpu counters

2012-11-27 Thread Dave Chinner
From: Dave Chinner Before we split up the dcache_lru_lock, the unused dentry counter needs to be made independent of the global dcache_lru_lock. Convert it to per-cpu counters to do this. Signed-off-by: Dave Chinner Reviewed-by: Christoph Hellwig --- fs/dcache.c | 17 ++--- 1 fi

[PATCH 16/19] fs: convert fs shrinkers to new scan/count API

2012-11-27 Thread Dave Chinner
From: Dave Chinner Convert the filesystem shrinkers to use the new API, and standardise some of the behaviours of the shrinkers at the same time. For example, nr_to_scan means the number of objects to scan, not the number of objects to free. I refactored the CIFS idmap shrinker a little - it rea

[PATCH 02/19] dentry: move to per-sb LRU locks

2012-11-27 Thread Dave Chinner
From: Dave Chinner With the dentry LRUs being per-sb structures, there is no real need for a global dentry_lru_lock. The locking can be made more fine-grained by moving to a per-sb LRU lock, isolating the LRU operations of different filesytsems completely from each other. Signed-off-by: Dave Chi

[PATCH 12/19] xfs: convert buftarg LRU to generic code

2012-11-27 Thread Dave Chinner
From: Dave Chinner Convert the buftarg LRU to use the new generic LRU list and take advantage of the functionality it supplies to make the buffer cache shrinker node aware. Signed-off-by: Dave Chinner --- fs/xfs/xfs_buf.c | 162 +- fs/xfs/xf

[PATCH 08/19] dcache: convert to use new lru list infrastructure

2012-11-27 Thread Dave Chinner
From: Dave Chinner Signed-off-by: Dave Chinner --- fs/dcache.c| 171 +--- fs/super.c | 10 +-- include/linux/fs.h | 15 +++-- 3 files changed, 82 insertions(+), 114 deletions(-) diff --git a/fs/dcache.c b/fs/dcache.c index ca

[PATCH 09/19] list_lru: per-node list infrastructure

2012-11-27 Thread Dave Chinner
From: Dave Chinner Now that we have an LRU list API, we can start to enhance the implementation. This splits the single LRU list into per-node lists and locks to enhance scalability. Items are placed on lists according to the node the memory belongs to. To make scanning the lists efficient, also

[PATCH 07/19] inode: convert inode lru list to generic lru list code.

2012-11-27 Thread Dave Chinner
From: Dave Chinner Signed-off-by: Dave Chinner --- fs/inode.c | 173 +--- fs/super.c | 11 ++-- include/linux/fs.h |6 +- 3 files changed, 75 insertions(+), 115 deletions(-) diff --git a/fs/inode.c b/fs/inode.c index 3624ae

[PATCH 03/19] dcache: remove dentries from LRU before putting on dispose list

2012-11-27 Thread Dave Chinner
From: Dave Chinner One of the big problems with modifying the way the dcache shrinker and LRU implementation works is that the LRU is abused in several ways. One of these is shrink_dentry_list(). Basically, we can move a dentry off the LRU onto a different list without doing any accounting chang

[RFC, PATCH 00/19] Numa aware LRU lists and shrinkers

2012-11-27 Thread Dave Chinner
Hi Glauber, Here's a working version of my patchset for generic LRU lists and NUMA-aware shrinkers. There are several parts to this patch set. The NUMA aware shrinkers are based on having a generic node-based LRU list implementation, and there are subsystems that need to be converted to use these

[PATCH 15/19] xfs: convert dquot cache lru to list_lru

2012-11-27 Thread Dave Chinner
From: Dave Chinner Convert the XFS dquot lru to use the list_lru construct and convert the shrinker to being node aware. Signed-off-by: Dave Chinner --- fs/xfs/xfs_dquot.c |7 +- fs/xfs/xfs_qm.c| 307 ++-- fs/xfs/xfs_qm.h|4 +- 3

Re: kswapd craziness in 3.7

2012-11-27 Thread Linus Torvalds
On Tue, Nov 27, 2012 at 2:26 PM, Johannes Weiner wrote: > On Tue, Nov 27, 2012 at 05:02:36PM -0500, Rik van Riel wrote: >> >> Kswapd going crazy is certainly a large part of the problem. >> >> However, that leaves the issue of page_alloc.c waking up >> kswapd when the system is not actually low on

Re: vmalloc_sync_all(), 64bit kernel, patches 9c48f1c629ecfa114850c03f875c6691003214de, a79e53d85683c6dd9f99c90511028adc2043031f

2012-11-27 Thread Prasad Koya
In one of our test cases that test if we are properly entering craskkernel, I'm seeing lockup inside sync_global_pgds(). This is with 2.6.38.8. sync_global_pgds() is called by vmalloc_sync_all(). Here is the call chain: machine_crash_shutdown -> native_machine_crash_shutdown -> nmi_shootdown_cpus

[PATCH 05/19] shrinker: convert superblock shrinkers to new API

2012-11-27 Thread Dave Chinner
From: Dave Chinner Convert superblock shrinker to use the new count/scan API, and propagate the API changes through to the filesystem callouts. The filesystem callouts already use a count/scan API, so it's just changing counters to longs to match the VM API. This requires the dentry and inode sh

[PATCH 11/19] fs: convert inode and dentry shrinking to be node aware

2012-11-27 Thread Dave Chinner
From: Dave Chinner Now that the shrinker is passing a nodemask in the scan control structure, we can pass this to the the generic LRU list code to isolate reclaim to the lists on matching nodes. This requires a small amount of refactoring of the LRU list API, which might be best split out into a

[PATCH 04/19] mm: new shrinker API

2012-11-27 Thread Dave Chinner
From: Dave Chinner The current shrinker callout API uses an a single shrinker call for multiple functions. To determine the function, a special magical value is passed in a parameter to change the behaviour. This complicates the implementation and return value specification for the different beha

[PATCH RESEND] regulator: tps51632: Use linear_min_sel and regulator_[map|list]_voltage_linear

2012-11-27 Thread Axel Lin
Signed-off-by: Axel Lin --- drivers/regulator/tps51632-regulator.c | 15 +-- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/drivers/regulator/tps51632-regulator.c b/drivers/regulator/tps51632-regulator.c index 3460364..dce5eb3 100644 --- a/drivers/regulator/tps51632

Re: [PATCH 0/5] Alter steal time reporting in KVM

2012-11-27 Thread Marcelo Tosatti
On Mon, Nov 26, 2012 at 02:36:24PM -0600, Michael Wolf wrote: > In the case of where you have a system that is running in a > capped or overcommitted environment the user may see steal time > being reported in accounting tools such as top or vmstat. The definition of stolen time is 'time during wh

Re: [PATCH 1/2 v2] wait: add wait_event_lock_irq() interface

2012-11-27 Thread Andrew Morton
On Thu, 22 Nov 2012 09:18:34 +0100 Lukas Czerner wrote: > New wait_event{_interruptible}_lock_irq{_cmd} macros added. This commit > moves the private wait_event_lock_irq() macro from MD to regular wait > includes, introduces new macro wait_event_lock_irq_cmd() instead of using > the old method wi

Re: linux-next: unusual update of the security tree

2012-11-27 Thread Stephen Rothwell
Hi James, On Wed, 28 Nov 2012 10:16:35 +1100 Stephen Rothwell wrote: > > The security tree > (git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git#next) > looks a bit strange today ... It appears to have been created by Casey > Schaufler (cc'd) and contains some quite old com

[PATCH] br2684: don't send frames on not-ready vcc

2012-11-27 Thread David Woodhouse
Avoid submitting patches to a vcc which is being closed. Things go badly wrong when the ->pop method gets later called after everything's been torn down. Signed-off-by: David Woodhouse --- On Tue, 2012-11-27 at 22:36 +, David Woodhouse wrote: > Nathan, does this help? I think that's necessa

[PATCH V7 3/7] arm64: use new common dtc rule

2012-11-27 Thread Stephen Warren
From: Stephen Warren The current rules have the .dtb files build in a different directory from the .dts files. This patch changes arm64 to use the generic dtb rule which builds .dtb files in the same directory as the source .dts. This requires moving parts of arch/arm64/boot/Makefile into newly

[PATCH V7 6/7] microblaze: use new common dtc rule

2012-11-27 Thread Stephen Warren
From: Stephen Warren The current rules have the .dtb files build in a different directory from the .dts files. This patch changes microblaze to use the generic dtb rule which builds .dtb files in the same directory as the source .dts. This requires moving parts of arch/microblaze/boot/Makefile i

[PATCH V7 5/7] c6x: use new common dtc rule

2012-11-27 Thread Stephen Warren
From: Stephen Warren The current rules have the .dtb files build in a different directory from the .dts files. This patch changes c6x to use the generic dtb rule which builds .dtb files in the same directory as the source .dts. This requires moving parts of arch/c6x/boot/Makefile into newly crea

[PATCH V7 7/7] xtensa: use new common dtc rule

2012-11-27 Thread Stephen Warren
From: Stephen Warren The current rules have the .dtb files build in a different directory from the .dts files. This patch changes xtensa to use the generic dtb rule which builds .dtb files in the same directory as the source .dts. This requires moving parts of arch/xtensa/boot/Makefile into newl

Re: [PATCH]: PVH: remove FEATURES_PVH macro

2012-11-27 Thread Mukesh Rathor
On Mon, 26 Nov 2012 14:54:00 -0500 Konrad Rzeszutek Wilk wrote: > On Wed, Nov 14, 2012 at 06:19:33PM -0800, Mukesh Rathor wrote: > > PVH: remove macro FEATURES_PVH and put PVH strings in the ELFNOTE > > line, because there's a null char before FEATURES_PVH and in the > > FEATURES_PVH strings sinc

Re: linux-next: unusual update of the security tree

2012-11-27 Thread Linus Torvalds
On Tue, Nov 27, 2012 at 3:28 PM, Stephen Rothwell wrote: > > If that is what happened, it may be worth always using the --no-ff flag > to git merge/pull to make sure that the top commit on your tree always > has you as the committer (and maybe SOB). > > Linus, does that make sense in general for m

[PATCH V7 4/7] openrisc: use new common dtc rule

2012-11-27 Thread Stephen Warren
From: Stephen Warren The current rules have the .dtb files build in a different directory from the .dts files. This patch changes openrisc to use the generic dtb rule which builds .dtb files in the same directory as the source .dts. This requires renaming arch/openrisc/boot/Makefile to arch/open

[PATCH V7 1/7] kbuild: centralize .dts->.dtb rule

2012-11-27 Thread Stephen Warren
From: Stephen Warren All architectures that use cmd_dtc do so in almost the same way. Create a central build rule to avoid duplication. The one difference is that most current uses of dtc build $(obj)/%.dtb from $(src)/dts/%.dts rather than building the .dtb in the same directory as the .dts file

[PATCH] mm: fix balloon_page_movable() page->flags check

2012-11-27 Thread Rafael Aquini
This patch fixes the following crash by fixing and enhancing the way page->flags are tested to identify a ballooned page. ---8<--- BUG: unable to handle kernel NULL pointer dereference at 0194 IP: [] isolate_migratepages_range+0x344/0x7b0 --->8--- The NULL pointer deref was taking pl

[PATCH V7 2/7] ARM: dt: change .dtb build rules to build in dts directory

2012-11-27 Thread Stephen Warren
From: Grant Likely The current rules have the .dtb files build in a different directory from the .dts files. The only reason for this is that it was what PowerPC has done historically. This patch changes ARM to use the generic dtb rule which builds .dtb files in the same directory as the source .

Re: [PATCH] mm: fix balloon_page_movable() page->flags check

2012-11-27 Thread Rafael Aquini
On Tue, Nov 27, 2012 at 09:31:10PM -0200, Rafael Aquini wrote: > This patch fixes the following crash by fixing and enhancing the way > page->flags are tested to identify a ballooned page. > > ---8<--- > BUG: unable to handle kernel NULL pointer dereference at 0194 > IP: [] isolate_mi

Re: [RFC PATCH v3 3/3] acpi_memhotplug: Allow eject to proceed on rebind scenario

2012-11-27 Thread Rafael J. Wysocki
On Tuesday, November 27, 2012 03:03:47 PM Toshi Kani wrote: > On Tue, 2012-11-27 at 19:32 +0100, Vasilis Liaskovitis wrote: > > On Mon, Nov 26, 2012 at 05:19:01PM -0700, Toshi Kani wrote: > > > > >> Consider the following sequence of operations for a hotplugged memory > > > > >> device: > > > > >>

Re: [PATCH 3/3] KVM: x86: improve reexecute_instruction

2012-11-27 Thread Marcelo Tosatti
On Tue, Nov 27, 2012 at 11:30:24AM +0800, Xiao Guangrong wrote: > On 11/27/2012 06:41 AM, Marcelo Tosatti wrote: > > >> > >> - return false; > >> +again: > >> + page_fault_count = ACCESS_ONCE(vcpu->kvm->arch.page_fault_count); > >> + > >> + /* > >> + * if emulation was due to access to shadow

Re: [PATCH 1/4] Input RMI4 - rename rmi_function_container to rmi_function

2012-11-27 Thread Christopher Heiny
On 11/27/2012 01:21 AM, Dmitry Torokhov wrote: To save my old fingers... Signed-off-by: Dmitry Torokhov --- It looks like this driver(s) need some love and I might have some time so I will refresh my "synaptics" branch with the patches you have sent and start working off it. If you have updates

Re: [PATCH 2/3] KVM: x86: let reexecute_instruction work for tdp

2012-11-27 Thread Marcelo Tosatti
On Tue, Nov 27, 2012 at 11:13:11AM +0800, Xiao Guangrong wrote: > >> +static bool reexecute_instruction(struct kvm_vcpu *vcpu, unsigned long > >> cr2) > >> { > >> - gpa_t gpa; > >> + gpa_t gpa = cr2; > >>pfn_t pfn; > >> > >> - if (tdp_enabled) > >> + if (!ACCESS_ONCE(vcpu->kvm->arch.indir

Re: linux-next: unusual update of the security tree

2012-11-27 Thread Casey Schaufler
On 11/27/2012 3:16 PM, Stephen Rothwell wrote: > Hi James, > > The security tree > (git://git.kernel.org/pub/scm/linux/kernel/git/jmorris/linux-security.git#next) > looks a bit strange today ... It appears to have been created by Casey > Schaufler (cc'd) and contains some quite old commits and bac

Re: [PATCH v2] drivers/of: Constify device_node->name and ->path_component_name

2012-11-27 Thread Michael Neuling
among > others. Grant, This breaks powerpc chroma_defconfig in next-20121127 with: arch/powerpc/sysdev/scom.c:160:17: error: assignment discards 'const' qualifier from pointer target type [-Werror] The following fixes it. The change is to generic code, so I'm not sure it'

Re: [PATCH 4/4] Input: RMI4 - introduce rmi_module_driver() macro

2012-11-27 Thread Christopher Heiny
On 11/27/2012 01:21 AM, Dmitry Torokhov wrote: This also allows us to cut down on the boilerplate code in the function handler modules. I like this idea a lot. We'll adopt it. Thanks! Chris Signed-off-by: Dmitry Torokh

Re: kernel BUG at mm/huge_memory.c:212!

2012-11-27 Thread David Rientjes
On Tue, 27 Nov 2012, Jiri Slaby wrote: > Hi, > > I've hit BUG_ON(atomic_dec_and_test(&huge_zero_refcount)) in > put_huge_zero_page right now. There are some "Bad rss-counter state" > before that, but those are perhaps unrelated as I saw many of them in > the previous -next. But even with yesterda

Re: [PATCH RESEND] regulator: tps51632: Use linear_min_sel and regulator_[map|list]_voltage_linear

2012-11-27 Thread Laxman Dewangan
On Wednesday 28 November 2012 04:52 AM, Axel Lin wrote: Signed-off-by: Axel Lin Looks great. Acked-by: Laxman Dewangan -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.o

Re: [PATCH V7 2/7] ARM: dt: change .dtb build rules to build in dts directory

2012-11-27 Thread Olof Johansson
On Tue, Nov 27, 2012 at 3:29 PM, Stephen Warren wrote: > From: Grant Likely > > The current rules have the .dtb files build in a different directory > from the .dts files. The only reason for this is that it was what > PowerPC has done historically. This patch changes ARM to use the generic > dtb

Re: [PATCH] br2684: don't send frames on not-ready vcc

2012-11-27 Thread Krzysztof Mazur
On Tue, Nov 27, 2012 at 11:28:36PM +, David Woodhouse wrote: > Avoid submitting patches to a vcc which is being closed. Things go badly > wrong when the ->pop method gets later called after everything's been > torn down. > > Signed-off-by: David Woodhouse > --- > On Tue, 2012-11-27 at 22:36 +

Re: [PATCH 2/3] cputime: Rename thread_group_times to thread_group_cputime_adjusted

2012-11-27 Thread Frederic Weisbecker
2012/11/26 Steven Rostedt : > OK, let's take a look at the other version now: > > void thread_group_times(struct task_struct *p, cputime_t *ut, cputime_t *st) So this does the same thing than thread_group_cputime(), ie: fetch the raw cputime stats from the task/signal struct, with a two adjustment

<    1   2   3   4   5   6   7   >