Re: [GIT PULL] percpu changes for v3.8

2012-12-11 Thread Tejun Heo
On Tue, Dec 11, 2012 at 06:24:53AM -0800, Tejun Heo wrote: > Hello, Linus. > > Percpu changes for v3.8. Nothing exciting here either. Joonsoo's is > almost cosmetic. Cyrill's patch fixes "percpu_alloc" early kernel > param handling so that the kernel doesn't crash when the parameter is >

Re: [PATCH 00/49] Automatic NUMA Balancing v10

2012-12-11 Thread Mel Gorman
On Tue, Dec 11, 2012 at 10:18:07AM +0100, Ingo Molnar wrote: > > * Ingo Molnar wrote: > > > > This is prototype only but what I was using as a reference > > > to see could I spot a problem in yours. It has not been even > > > boot tested but avoids remote->remote copies, contending on > > >

Re: [PATCH 3/4 v2] gpio/mvebu: convert to use irq_domain_add_simple()

2012-12-11 Thread Thomas Petazzoni
Dear Linus Walleij, On Fri, 19 Oct 2012 12:54:02 +0200, Linus Walleij wrote: > The MVEBU driver probably just wants a few IRQs. Using the simple > domain has the upside of allocating IRQ descriptors if need be, > especially in a SPARSE_IRQ environment. Unfortunately, this creates the following

Re: [Devel] [PATCH 2/6] nfsd: swap fs root in NFSd kthreads

2012-12-11 Thread J. Bruce Fields
On Tue, Dec 11, 2012 at 07:07:00PM +0400, Stanislav Kinsbursky wrote: > 11.12.2012 18:56, J. Bruce Fields пишет: > >On Tue, Dec 11, 2012 at 06:12:40PM +0400, Stanislav Kinsbursky wrote: > >>UID: 9899 > >> > >>11.12.2012 18:00, Stanislav Kinsbursky пишет: > >>>11.12.2012 00:28, J. Bruce Fields

Re: performance drop after using blkcg

2012-12-11 Thread Tejun Heo
Hello, Vivek. On Tue, Dec 11, 2012 at 10:02:34AM -0500, Vivek Goyal wrote: > cfq_group_served() { > if (iops_mode(cfqd)) > charge = cfqq->slice_dispatch; > cfqg->vdisktime += cfq_scale_slice(charge, cfqg); > } > > Isn't it effectively IOPS scheduling. One should get

[PATCH] f2fs: fix up f2fs_get_parent issue to retrieve correct parent inode number

2012-12-11 Thread Namjae Jeon
From: Namjae Jeon Test Case: [NFS Client] ls -lR . [NFS Server] while [ 1 ] do echo 3 > /proc/sys/vm/drop_caches done Error on NFS Client: "No such file or directory" When cache is dropped at the server, it results in lookup failure at the NFS client due to non-connection with the parent. The

Re: [PATCH 5/6] ACPI: Replace struct acpi_bus_ops with enum type

2012-12-11 Thread Jiang Liu
Hi Rafael, I have worked out a patch set to clean up ACPI/PCI related notifications, please refer to http://www.spinics.net/lists/linux-pci/msg17822.html The patchset doesn't apply cleanly to Bjorn's latest pci-next tree. I will help to rebase it if needed. Regards! Gerry On

Re: WARNING: at drivers/gpu/drm/i915/i915_gem.c:3437 i915_gem_object_pin+0x151/0x1a0()

2012-12-11 Thread Daniel Vetter
On Tue, Dec 11, 2012 at 1:31 PM, Nikola Pajkovsky wrote: > looks like we still have some oops in i915. i915 maintainers do you have > any ideas what's going on? I will try to trigger that oops later today > and provide more information. The infamous pin leak. Should be fixed with commit

Re: [Devel] [PATCH 2/6] nfsd: swap fs root in NFSd kthreads

2012-12-11 Thread Stanislav Kinsbursky
11.12.2012 18:56, J. Bruce Fields пишет: On Tue, Dec 11, 2012 at 06:12:40PM +0400, Stanislav Kinsbursky wrote: UID: 9899 11.12.2012 18:00, Stanislav Kinsbursky пишет: 11.12.2012 00:28, J. Bruce Fields пишет: On Thu, Dec 06, 2012 at 06:34:47PM +0300, Stanislav Kinsbursky wrote: NFSd does

null dereference at r100_debugfs_cp_ring_info+0x115/0x140

2012-12-11 Thread Dave Jones
(Taint comes from previous r600 bug reported here https://lkml.org/lkml/2012/12/8/131) [35662.070628] BUG: unable to handle kernel NULL pointer dereference at (null) [35662.071719] IP: [] r100_debugfs_cp_ring_info+0x115/0x140 [35662.072652] PGD b4c17067 PUD b69d1067 PMD 0

[PATCH] dma_buf: Cleanup dma_buf_fd

2012-12-11 Thread Borislav Petkov
Remove redundant 'error' variable. Signed-off-by: Borislav Petkov --- drivers/base/dma-buf.c | 9 - 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/drivers/base/dma-buf.c b/drivers/base/dma-buf.c index 460e22dee36d..a384b63be757 100644 --- a/drivers/base/dma-buf.c +++

Re: performance drop after using blkcg

2012-12-11 Thread Vivek Goyal
On Tue, Dec 11, 2012 at 06:47:18AM -0800, Tejun Heo wrote: > Hello, > > On Tue, Dec 11, 2012 at 09:43:36AM -0500, Vivek Goyal wrote: > > I think if one sets slice_idle=0 and group_idle=0 in CFQ, for all practical > > purposes it should become and IOPS based group scheduling. > > No, I don't

Re: [Devel] [PATCH 2/6] nfsd: swap fs root in NFSd kthreads

2012-12-11 Thread Al Viro
On Tue, Dec 11, 2012 at 09:56:21AM -0500, J. Bruce Fields wrote: > That looks simpler, but I still don't understand why we need it. > > I'm confused about how d_path works; I would have thought that > filesystem namespaces would have their own vfsmount trees and hence that > the (vfsmount,

Re: [PATCH 2/6] nfsd: swap fs root in NFSd kthreads

2012-12-11 Thread Stanislav Kinsbursky
11.12.2012 18:54, Al Viro пишет: On Tue, Dec 11, 2012 at 06:00:00PM +0400, Stanislav Kinsbursky wrote: 11.12.2012 00:28, J. Bruce Fields ??: On Thu, Dec 06, 2012 at 06:34:47PM +0300, Stanislav Kinsbursky wrote: NFSd does lookup. Lookup is done starting from current->fs->root. NFSd is

Re: signed size_t ?

2012-12-11 Thread Måns Rullgård
Christoph Lameter writes: > On Tue, 11 Dec 2012, kbuild test robot wrote: > >> mm/slab_common.c: In function 'create_boot_cache': >> mm/slab_common.c:219:6: warning: format '%zd' expects argument of type >> 'signed size_t', but argument 3 has type 'size_t' [-Wformat] > > We already changed that

Re: [tip:x86/microcode] x86/microcode_intel_early.c: Early update ucode on Intel's CPU

2012-12-11 Thread Borislav Petkov
On Mon, Dec 10, 2012 at 11:07:38PM -0800, Yinghai Lu wrote: > BTW, do we really need to update microcode so early? Yes we do. Normally ucode gets applied by the BIOS - this early approach is for those cases where OEMs don't release new BIOS anymore but we still need to apply a ucode patch as

Re: [Devel] [PATCH 2/6] nfsd: swap fs root in NFSd kthreads

2012-12-11 Thread J. Bruce Fields
On Tue, Dec 11, 2012 at 06:12:40PM +0400, Stanislav Kinsbursky wrote: > UID: 9899 > > 11.12.2012 18:00, Stanislav Kinsbursky пишет: > >11.12.2012 00:28, J. Bruce Fields пишет: > >>On Thu, Dec 06, 2012 at 06:34:47PM +0300, Stanislav Kinsbursky wrote: > >>>NFSd does lookup. Lookup is done starting

Re: [PATCH 2/6] nfsd: swap fs root in NFSd kthreads

2012-12-11 Thread Al Viro
On Tue, Dec 11, 2012 at 06:00:00PM +0400, Stanislav Kinsbursky wrote: > 11.12.2012 00:28, J. Bruce Fields ??: > >On Thu, Dec 06, 2012 at 06:34:47PM +0300, Stanislav Kinsbursky wrote: > >>NFSd does lookup. Lookup is done starting from current->fs->root. > >>NFSd is a kthread, cloned by

Re: [Devel] [PATCH 2/6] nfsd: swap fs root in NFSd kthreads

2012-12-11 Thread Stanislav Kinsbursky
11.12.2012 18:12, Stanislav Kinsbursky пишет: 11.12.2012 18:00, Stanislav Kinsbursky пишет: 11.12.2012 00:28, J. Bruce Fields пишет: On Thu, Dec 06, 2012 at 06:34:47PM +0300, Stanislav Kinsbursky wrote: NFSd does lookup. Lookup is done starting from current->fs->root. NFSd is a kthread,

Re: [PATCH v2 04/10] net: smc911x: use io{read,write}*_rep accessors

2012-12-11 Thread Will Deacon
Hi David, On Mon, Dec 10, 2012 at 08:47:05PM +, David Miller wrote: > From: Will Deacon > Date: Mon, 10 Dec 2012 19:12:36 + > > > From: Matthew Leach > > > > The {read,write}s{b,w,l} operations are not defined by all > > architectures and are being removed from the asm-generic/io.h >

Re: performance drop after using blkcg

2012-12-11 Thread Tejun Heo
Hello, On Tue, Dec 11, 2012 at 09:43:36AM -0500, Vivek Goyal wrote: > I think if one sets slice_idle=0 and group_idle=0 in CFQ, for all practical > purposes it should become and IOPS based group scheduling. No, I don't think it is. You can't achieve isolation without idling between group

[PATCH] remove unused code from do_wp_page

2012-12-11 Thread dingel
From: Dominik Dingel page_mkwrite is initalized with zero and only set once, from that point exists no way to get to the oom or oom_free_new labels. Signed-off-by: Dominik Dingel --- mm/memory.c | 4 1 file changed, 4 deletions(-) diff --git a/mm/memory.c b/mm/memory.c index

Re: performance drop after using blkcg

2012-12-11 Thread Vivek Goyal
On Tue, Dec 11, 2012 at 06:27:42AM -0800, Tejun Heo wrote: > On Tue, Dec 11, 2012 at 09:25:18AM -0500, Vivek Goyal wrote: > > In general, do not use blkcg on faster storage. In current form it > > is at best suitable for single rotational SATA/SAS disk. I have not > > been able to figure out how

Re: [RFC PATCH 0/8] remove vm_struct list management

2012-12-11 Thread Dave Anderson
- Original Message - > > Can we get the same information from this rb-tree of vmap_area? Is > > ->va_start field communication same information as vmlist was > > communicating? What's the difference between vmap_area_root and vmlist. > > Thanks for comment. > > Yes. vmap_area's

Re: livelock in __writeback_inodes_wb ?

2012-12-11 Thread Dave Jones
On Tue, Dec 11, 2012 at 04:23:27PM +0800, Fengguang Wu wrote: > On Wed, Nov 28, 2012 at 09:55:15AM -0500, Dave Jones wrote: > > We had a user report the soft lockup detector kicked after 22 > > seconds of no progress, with this trace.. > > Where is the original report? The reporter may help

Re: [RFC PATCH v3 0/3] acpi: Introduce prepare_remove device operation

2012-12-11 Thread Jiang Liu
On 12/08/2012 09:08 AM, Toshi Kani wrote: > On Fri, 2012-12-07 at 13:57 +0800, Jiang Liu wrote: >> On 2012-12-7 10:57, Toshi Kani wrote: >>> On Fri, 2012-12-07 at 00:40 +0800, Jiang Liu wrote: On 12/04/2012 08:10 AM, Toshi Kani wrote: > On Mon, 2012-12-03 at 12:25 +0800, Hanjun Guo wrote:

signed size_t ?

2012-12-11 Thread Christoph Lameter
On Tue, 11 Dec 2012, kbuild test robot wrote: > mm/slab_common.c: In function 'create_boot_cache': > mm/slab_common.c:219:6: warning: format '%zd' expects argument of type > 'signed size_t', but argument 3 has type 'size_t' [-Wformat] We already changed that once from %td to %zd so that the

Re: performance drop after using blkcg

2012-12-11 Thread Tejun Heo
On Tue, Dec 11, 2012 at 09:25:18AM -0500, Vivek Goyal wrote: > In general, do not use blkcg on faster storage. In current form it > is at best suitable for single rotational SATA/SAS disk. I have not > been able to figure out how to provide fairness without group idling. I think cfq is just the

Re: performance drop after using blkcg

2012-12-11 Thread Vivek Goyal
On Mon, Dec 10, 2012 at 08:28:54PM +0800, Zhao Shuai wrote: > Hi, > > I plan to use blkcg(proportional BW) in my system. But I encounter > great performance drop after enabling blkcg. > The testing tool is fio(version 2.0.7) and both the BW and IOPS fields > are recorded. Two instances of fio

[GIT PULL] percpu changes for v3.8

2012-12-11 Thread Tejun Heo
Hello, Linus. Percpu changes for v3.8. Nothing exciting here either. Joonsoo's is almost cosmetic. Cyrill's patch fixes "percpu_alloc" early kernel param handling so that the kernel doesn't crash when the parameter is specified w/o any argument.

[GIT PULL] workqueue changes for v3.8

2012-12-11 Thread Tejun Heo
Hello, Linus. Please pull from the following branch to receive workqueue changes for v3.8. Nothing exciting. Just two trivial changes. git://git.kernel.org/pub/scm/linux/kernel/git/tj/wq.git for-3.8 Thanks. Joonsoo Kim (2):

Re: [RFC][PATCH RT 3/4] sched/rt: Use IPI to trigger RT task push migration instead of pulling

2012-12-11 Thread Steven Rostedt
On Tue, 2012-12-11 at 09:02 -0500, Steven Rostedt wrote: > Currently, what we have is a huge contention on both the pulled CPU rq > lock. We've measured over 500us latencies due to it. This hurts even the > CPU that has the overloaded task, as the contention is on its lock. The 500us latency was

Re: [Devel] [PATCH 2/6] nfsd: swap fs root in NFSd kthreads

2012-12-11 Thread Stanislav Kinsbursky
11.12.2012 18:00, Stanislav Kinsbursky пишет: 11.12.2012 00:28, J. Bruce Fields пишет: On Thu, Dec 06, 2012 at 06:34:47PM +0300, Stanislav Kinsbursky wrote: NFSd does lookup. Lookup is done starting from current->fs->root. NFSd is a kthread, cloned by kthreadd, and thus have global (but

Re: [PATCH 1/2] vfs: new super block feature flags attribute

2012-12-11 Thread Mimi Zohar
On Thu, 2012-11-22 at 14:49 +0200, Dmitry Kasatkin wrote: > This patch introduces new super block attribute flag s_feature_flags > and SF_IMA_DISABLED flag. This flag will be used by Integrity Measurement > Architecture (IMA). Name suggested by Bruce Fields. The patch looks good. The patch

Re: [PATCH 0/2] ima: policy search speedup

2012-12-11 Thread Mimi Zohar
On Tue, 2012-12-11 at 14:51 +0200, Kasatkin, Dmitry wrote: > >> Here is two patches for policy search speedup. > >> > >> First patch adds additional features flags to superblock. > >> Second - implementation for IMA. > >> > >> Two months ago I was asking about it on mailing lists. > >> Suggestion

[RFC PATCH v4 2/9] CPU hotplug: Convert preprocessor macros to static inline functions

2012-12-11 Thread Srivatsa S. Bhat
On 12/05/2012 06:10 AM, Andrew Morton wrote: "static inline C functions would be preferred if possible. Feel free to fix up the wrong crufty surrounding code as well ;-)" Convert the macros in the CPU hotplug code to static inline C functions. Signed-off-by: Srivatsa S. Bhat ---

[RFC PATCH v4 4/9] smp, cpu hotplug: Fix on_each_cpu_*() to prevent CPU offline properly

2012-12-11 Thread Srivatsa S. Bhat
Once stop_machine() is gone from the CPU offline path, we won't be able to depend on preempt_disable() to prevent CPUs from going offline from under us. Use the get/put_online_cpus_atomic() APIs to prevent CPUs from going offline, while invoking from atomic context. Signed-off-by: Srivatsa S.

[RFC PATCH v4 3/9] smp, cpu hotplug: Fix smp_call_function_*() to prevent CPU offline properly

2012-12-11 Thread Srivatsa S. Bhat
Once stop_machine() is gone from the CPU offline path, we won't be able to depend on preempt_disable() to prevent CPUs from going offline from under us. Use the get/put_online_cpus_atomic() APIs to prevent CPUs from going offline, while invoking from atomic context. Signed-off-by: Srivatsa S.

[RFC PATCH v4 9/9] cpu: No more __stop_machine() in _cpu_down()

2012-12-11 Thread Srivatsa S. Bhat
From: Paul E. McKenney The _cpu_down() function invoked as part of the CPU-hotplug offlining process currently invokes __stop_machine(), which is slow and inflicts substantial real-time latencies on the entire system. This patch substitutes stop_one_cpu() for __stop_machine() in order to

Re: [RFC PATCH v3 1/9] CPU hotplug: Provide APIs to prevent CPU offline from atomic context

2012-12-11 Thread Tejun Heo
Hello, On Tue, Dec 11, 2012 at 07:32:13PM +0530, Srivatsa S. Bhat wrote: > On 12/11/2012 07:17 PM, Tejun Heo wrote: > > Hello, Srivatsa. > > > > On Tue, Dec 11, 2012 at 06:43:54PM +0530, Srivatsa S. Bhat wrote: > >> This approach (of using synchronize_sched()) also looks good. It is simple, > >>

[RFC PATCH v4 8/9] kvm, vmx: Add atomic synchronization with CPU Hotplug

2012-12-11 Thread Srivatsa S. Bhat
preempt_disable() will no longer help prevent CPUs from going offline, once stop_machine() gets removed from the CPU offline path. So use get/put_online_cpus_atomic() in vmx_vcpu_load() to prevent CPUs from going offline while clearing vmcs. Reported-by: Michael Wang Debugged-by: Xiao Guangrong

[RFC PATCH v4 7/9] yield_to(), cpu-hotplug: Prevent offlining of other CPUs properly

2012-12-11 Thread Srivatsa S. Bhat
Once stop_machine() is gone from the CPU offline path, we won't be able to depend on local_irq_save() to prevent CPUs from going offline from under us. Use the get/put_online_cpus_atomic() APIs to prevent CPUs from going offline, while invoking from atomic context. Signed-off-by: Srivatsa S.

[RFC PATCH v4 0/9] CPU hotplug: stop_machine()-free CPU hotplug

2012-12-11 Thread Srivatsa S. Bhat
Hi, This patchset removes CPU hotplug's dependence on stop_machine() from the CPU offline path and provides an alternative (set of APIs) to preempt_disable() to prevent CPUs from going offline, which can be invoked from atomic context. This is an RFC patchset with only a few call-sites of

Re: [RFC PATCH v3 1/9] CPU hotplug: Provide APIs to prevent CPU offline from atomic context

2012-12-11 Thread Srivatsa S. Bhat
On 12/11/2012 07:17 PM, Tejun Heo wrote: > Hello, Srivatsa. > > On Tue, Dec 11, 2012 at 06:43:54PM +0530, Srivatsa S. Bhat wrote: >> This approach (of using synchronize_sched()) also looks good. It is simple, >> yet effective, but unfortunately inefficient at the writer side (because >> he'll

Re: [RFC][PATCH RT 3/4] sched/rt: Use IPI to trigger RT task push migration instead of pulling

2012-12-11 Thread Steven Rostedt
On Tue, 2012-12-11 at 13:43 +0100, Thomas Gleixner wrote: > On Mon, 10 Dec 2012, Steven Rostedt wrote: > > On Mon, 2012-12-10 at 17:15 -0800, Frank Rowand wrote: > > > > > I should have also mentioned some previous experience using IPIs to > > > avoid runq lock contention on wake up. Someone

Re: [PATCH V3 1/2] MCE: fix an error of mce_bad_pages statistics

2012-12-11 Thread Xishi Qiu
On 2012/12/11 20:42, Wanpeng Li wrote: > On Tue, Dec 11, 2012 at 08:18:27PM +0800, Xishi Qiu wrote: >> 1) move poisoned page check at the beginning of the function. >> 2) add page_lock to avoid unpoison clear the flag. >> >> Signed-off-by: Xishi Qiu >> Signed-off-by: Jiang Liu >> --- >>

[GIT PULL] EDAC fixes for 3.8

2012-12-11 Thread Borislav Petkov
Hi Linus, please pull the 'for-linus' branch below to receive the following changes to EDAC: * EDAC core error path fix, from Denis Kirjanov. * Generalization of AMD MCE bank names and some minor error reporting improvements. * EDAC core cleanups and simplifications, from Wei Yongjun. *

Re: [PATCH 2/6] nfsd: swap fs root in NFSd kthreads

2012-12-11 Thread Stanislav Kinsbursky
11.12.2012 00:28, J. Bruce Fields пишет: On Thu, Dec 06, 2012 at 06:34:47PM +0300, Stanislav Kinsbursky wrote: NFSd does lookup. Lookup is done starting from current->fs->root. NFSd is a kthread, cloned by kthreadd, and thus have global (but luckely unshared) root. So we have to swap root to

[PATCH 2/2] pinctrl/nomadik: adopt pinctrl sleep mode management

2012-12-11 Thread Linus Walleij
From: Julien Delacou This fix makes pinctrl-nomadik able to handle suspend/resume events and change hogged pins states accordingly. Signed-off-by: Julien Delacou Signed-off-by: Linus Walleij --- drivers/pinctrl/pinctrl-nomadik.c | 26 ++ 1 file changed, 26

[PATCH 1/2] pinctrl: add sleep mode management for hogs

2012-12-11 Thread Linus Walleij
From: Julien Delacou This fix allows handling sleep mode for hogged pins in pinctrl. It provides functions to set pins to sleep/default configurations according to their current state from the individual pinctrl drivers. Signed-off-by: Julien Delacou Signed-off-by: Linus Walleij ---

[PATCH] vfs: remove unneeded permission check from path_init

2012-12-11 Thread Jeff Layton
When path_init is called with a valid dfd, that code checks permissions on the open directory fd and returns an error if the check fails. This permission check is redundant, however. Both callers of path_init immediately call link_path_walk afterward. The first thing that link_path_walk does is

Re: [PATCH 3/3 v2] iio: add rtc-driver for HID sensors of type time

2012-12-11 Thread Jonathan Cameron
On 11/12/12 12:39, Alexander Holler wrote: Am 11.12.2012 10:40, schrieb Lars-Peter Clausen: Yes, move the header or merge into existing one as makes sense. I'm not pulling this driver into the IIO tree (unless for some reason Alessandro wants me to and I can't think why he would...).

Re: [PATCH] regulator: vexpress: Add missing n_voltages setting

2012-12-11 Thread Pawel Moll
On Tue, 2012-12-11 at 08:04 +, Axel Lin wrote: > Otherwise regulator_can_change_voltage() return 0 for this driver. > > Signed-off-by: Axel Lin We've been here before, haven't we? ;-) So I'll just repeat myself - this regulator does _not_ have operating points. What I believe should be

Re: [PATCH v3 2/4] videobuf2-dma-streaming: new videobuf2 memory allocator

2012-12-11 Thread Federico Vaga
Sorry for the late answer to this. > > This allocator is needed because some device (like STA2X11 VIP) cannot > > work > > with DMA sg or DMA coherent. Some other device (like the one used by > > Jonathan when he proposes vb2-dma-nc allocator) can obtain much better > > performance with DMA

Re: [RFC PATCH v3 1/9] CPU hotplug: Provide APIs to prevent CPU offline from atomic context

2012-12-11 Thread Tejun Heo
Hello, Srivatsa. On Tue, Dec 11, 2012 at 06:43:54PM +0530, Srivatsa S. Bhat wrote: > This approach (of using synchronize_sched()) also looks good. It is simple, > yet effective, but unfortunately inefficient at the writer side (because > he'll have to wait for a full synchronize_sched()). While

Re: [PATCH V3 1/2] MCE: fix an error of mce_bad_pages statistics

2012-12-11 Thread Andi Kleen
On Tue, Dec 11, 2012 at 08:18:27PM +0800, Xishi Qiu wrote: > 1) move poisoned page check at the beginning of the function. > 2) add page_lock to avoid unpoison clear the flag. That doesn't make sense, obviously you would need to recheck inside the lock again to really protect against unpoison.

[PATCH/RESEND v3 2/2] row: Add support for urgent request handling

2012-12-11 Thread Tanya Brokhman
This patch add support for handling urgent requests. ROW queue can be marked as "urgent". If an urgent queue was un-served in a previous dispatch cycle and a request was added to it - it will trigger issuing urgent request to the device driver. Signed-off-by: Tatyana Brokhman diff --git

[PATCH v3 1/2] row: Adding support for reinsert already dispatched req

2012-12-11 Thread Tanya Brokhman
Add support for reinserting already dispatched request back to the schedulers internal data structures. The request will be reinserted back to the queue (head) it was dispatched from as if it was never dispatched. Signed-off-by: Tatyana Brokhman --- v3: Update error handling when row queue is

[PATCH v4 1/2] block: Adding ROW scheduling algorithm

2012-12-11 Thread Tanya Brokhman
This patch adds the implementation of a new scheduling algorithm - ROW. The policy of this algorithm is to prioritize READ requests over WRITE as much as possible without starving the WRITE requests. The requests are kept in queues according to their priority. The dispatch is done in a Round Robin

[PATCH/RESEND v4 2/2] block: compile ROW statically into the kernel

2012-12-11 Thread Tanya Brokhman
From: Tatyana Brokhman ROW is a new scheduling algorithm. Similar to the existing scheduling algorithms it should be compiled to the kernel statically giving the user the ability to switch to it without kernel recompilation. Signed-off-by: Tatyana Brokhman diff --git a/block/Kconfig.iosched

[PATCH] drivers/pinctrl: grab default handles from device core

2012-12-11 Thread Linus Walleij
From: Linus Walleij This makes the device core auto-grab the pinctrl handle and set the "default" (PINCTRL_STATE_DEFAULT) state for every device that is present in the device model right before probe. This will account for the lion's share of embedded silicon devcies. A modification of the

Re: [PATCH v3 2/2] scripts/tags.sh: Support compiled source

2012-12-11 Thread Michal Marek
Dne 10.12.2012 16:11, Joonsoo Kim napsal(a): > We usually have interst in compiled files only, > because they are strongly related to individual's work. > Current tags.sh can't select compiled files, so support it. > > We can use this functionality like below. > "make cscope O=. SRCARCH=

Re: livelock in __writeback_inodes_wb ?

2012-12-11 Thread Jan Kara
On Tue 11-12-12 16:23:27, Wu Fengguang wrote: > On Wed, Nov 28, 2012 at 09:55:15AM -0500, Dave Jones wrote: > > We had a user report the soft lockup detector kicked after 22 > > seconds of no progress, with this trace.. > > Where is the original report? The reporter may help provide some clues >

[PATCH 2/2] ASoC: aic: Support for AIC family DSPs

2012-12-11 Thread Mehar Bajwa
AIC family of audio CODECs from TI features a programmable miniDSP for performing signal processing operations. Due to commonality of functions across the CODECs a common library will be used to provide support for them. Signed-off-by: Mehar Bajwa --- sound/soc/codecs/Kconfig |5 +

[PATCH v3 1/2] block: Add support for reinsert a dispatched req

2012-12-11 Thread Tanya Brokhman
From: Tatyana Brokhman Add support for reinserting a dispatched request back to the scheduler's internal data structures. This capability is used by the device driver when it chooses to interrupt the current request transmission and execute another (more urgent) pending request. For example:

[PATCH v3 2/2] block: Add API for urgent request handling

2012-12-11 Thread Tanya Brokhman
From: Tatyana Brokhman This patch add support in block & elevator layers for handling urgent requests. The decision if a request is urgent or not is taken by the scheduler. Urgent request notification is passed to the underlying block device driver (eMMC for example). Block device driver may

[PATCH 2/2] pinctrl: skip deferral of hogs

2012-12-11 Thread Linus Walleij
From: Linus Walleij Up until now, as hogs were always taken at the end of the pin control device registration, it didn't cause any problem. But when starting to hog pins from the device core it will cause deferral of the pin controller device itself since the default pin fetch is done *before*

[PATCH 1/2] pinctrl: fix comment mistake

2012-12-11 Thread Linus Walleij
From: Linus Walleij This variable pertains to pinctrl handles not muxes specifically. Signed-off-by: Linus Walleij --- drivers/pinctrl/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c index 5cdee86..59f5a96 100644 ---

Re: [RFC v2] Add mempressure cgroup

2012-12-11 Thread Bartlomiej Zolnierkiewicz
On Monday 10 December 2012 21:05:12 Anton Vorontsov wrote: > On Mon, Dec 10, 2012 at 01:23:09PM +0100, Bartlomiej Zolnierkiewicz wrote: > > On Monday 10 December 2012 10:58:38 Anton Vorontsov wrote: > > > > > +static void consume_memory(void) > > > +{ > > > + unsigned int i = 0; > > > + unsigned

[PATCH] Linux 3.8-merge version information

2012-12-11 Thread Oliver Hartkopp
As the automatically generated git version information is misleading in the merge window, name the kernel in the merge window as 3.8-merge . This 'merge' version information helps to not interfere with 3.7-stable git versions in the bootloader (grub) selection until 3.8-rc1 is tagged.

Re: [PATCH v3 3/5] page_alloc: Introduce zone_movable_limit[] to keep movable limit for nodes

2012-12-11 Thread Simon Jeons
On Tue, 2012-12-11 at 20:41 +0800, Jianguo Wu wrote: > On 2012/12/11 20:24, Simon Jeons wrote: > > > On Tue, 2012-12-11 at 11:07 +0800, Jianguo Wu wrote: > >> On 2012/12/11 10:33, Tang Chen wrote: > >> > >>> This patch introduces a new array zone_movable_limit[] to store the > >>> ZONE_MOVABLE

Re: [PATCH] clk: mxs: Remove unneeded NULL pointer check

2012-12-11 Thread Shawn Guo
On Tue, Dec 11, 2012 at 08:33:34AM -0200, Fabio Estevam wrote: > Shawn/Mike, > > On Wed, Nov 21, 2012 at 7:33 PM, Fabio Estevam wrote: > > From: Fabio Estevam > > > > mxs platform has been converted to device tree. > > > > There is no need to check if np is NULL after doing: > > > > np =

Re: [RFC PATCH v3 1/9] CPU hotplug: Provide APIs to prevent CPU offline from atomic context

2012-12-11 Thread Srivatsa S. Bhat
On 12/10/2012 10:54 PM, Oleg Nesterov wrote: > On 12/10, Srivatsa S. Bhat wrote: >> >> On 12/10/2012 01:52 AM, Oleg Nesterov wrote: >>> On 12/10, Srivatsa S. Bhat wrote: On 12/10/2012 12:44 AM, Oleg Nesterov wrote: > But yes, it is easy to blame somebody else's code ;) And I

Re: [PATCH V3 1/2] MCE: fix an error of mce_bad_pages statistics

2012-12-11 Thread Borislav Petkov
On Tue, Dec 11, 2012 at 08:42:39PM +0800, Wanpeng Li wrote: > Futhermore, Andrew didn't like a variable called "mce_bad_pages". > > - Why do we have a variable called "mce_bad_pages"? MCE is an x86 > concept, and this code is in mm/. Lights are flashing, bells are > ringing and a loudspeaker is

Re: [PATCH 0/3] Add O_DENY* flags to fcntl and cifs

2012-12-11 Thread Jeff Layton
On Mon, 10 Dec 2012 11:41:16 -0500 "J. Bruce Fields" wrote: > On Sat, Dec 08, 2012 at 12:43:14AM +0400, Pavel Shilovsky wrote: > > The problem is the possibility of denial-of-service attacks here. We > > can try to prevent them by: > > 1) specifying an extra security bit on the file that

Re: [PATCH] drivers/pinctrl/pinctrl-at91.c: convert kfree to devm_kfree

2012-12-11 Thread Julia Lawall
On Tue, 11 Dec 2012, Sergei Shtylyov wrote: > Hello. > > On 11-12-2012 14:58, Julia Lawall wrote: > > > From: Julia Lawall > > > The function at91_dt_node_to_map is ultimately called by the function > > pinctrl_get, which is an exported function. Since it is possible that this > > function is

Re: [RFC PATCH v3 1/9] CPU hotplug: Provide APIs to prevent CPU offline from atomic context

2012-12-11 Thread Srivatsa S. Bhat
On 12/10/2012 10:58 PM, Oleg Nesterov wrote: > On 12/10, Srivatsa S. Bhat wrote: >> >> On 12/10/2012 02:43 AM, Oleg Nesterov wrote: >>> Damn, sorry for noise. I missed this part... >>> >>> On 12/10, Srivatsa S. Bhat wrote: On 12/10/2012 12:44 AM, Oleg Nesterov wrote: > the latency.

Re: [RFC PATCH v3 1/9] CPU hotplug: Provide APIs to prevent CPU offline from atomic context

2012-12-11 Thread Srivatsa S. Bhat
On 12/10/2012 11:45 PM, Oleg Nesterov wrote: > On 12/10, Srivatsa S. Bhat wrote: >> >> On 12/10/2012 02:27 AM, Oleg Nesterov wrote: >>> However. If this is true, then compared to preempt_disable/stop_machine >>> livelock is possible. Probably this is fine, we have the same problem with >>>

Re: [PATCH] mfd: vexpress-config: Export __vexpress_config_func_get and vexpress_config_func_put

2012-12-11 Thread Pawel Moll
On Tue, 2012-12-11 at 08:23 +, Axel Lin wrote: > This fixes below build error: > > Building modules, stage 2. > MODPOST 17 modules > ERROR: "__vexpress_config_func_get" [drivers/regulator/vexpress.ko] undefined! > ERROR: "vexpress_config_func_put" [drivers/regulator/vexpress.ko]

Re: [PATCH] drivers/pinctrl/pinctrl-at91.c: convert kfree to devm_kfree

2012-12-11 Thread Sergei Shtylyov
Hello. On 11-12-2012 14:58, Julia Lawall wrote: From: Julia Lawall The function at91_dt_node_to_map is ultimately called by the function pinctrl_get, which is an exported function. Since it is possible that this function is not called from within a probe function, for safety, the kfree is

Re: [RFC PATCH 2/3] regulator: max77686: Add support for various operating modes

2012-12-11 Thread Mark Brown
On Mon, Dec 10, 2012 at 02:06:49PM +0530, Abhilash Kesavan wrote: > On Mon, Dec 10, 2012 at 1:49 PM, Abhilash Kesavan > wrote: > > Mark Brown opensource.wolfsonmicro.com> writes: > >> Binding documenation is mandatory for any new OF properties, please add > >> this. > > Patch 3/3 of this

RE: [PATCH v3 2/3] mtd: devices: elm: Add support for ELM error correction

2012-12-11 Thread Philip, Avinash
On Tue, Dec 11, 2012 at 14:33:56, Grant Likely wrote: > On Thu, 29 Nov 2012 17:16:33 +0530, "Philip, Avinash" > wrote: > > The ELM hardware module can be used to speedup BCH 4/8/16 ECC scheme > > error correction. > > For now only 4 & 8 bit support is added > > > > Signed-off-by: Philip,

Re: [PATCH 0/2] ima: policy search speedup

2012-12-11 Thread Kasatkin, Dmitry
Hello Linus, Can you please comment on the feature flag in this patchset? Thanks, Dmitry On Tue, Nov 27, 2012 at 3:42 PM, Kasatkin, Dmitry wrote: > Hello, > > Any thoughts about this proposal? > > - Dmitry > > On Thu, Nov 22, 2012 at 11:54 PM, Dmitry Kasatkin > wrote: >> Hello, >> >> Here is

Re: [PATCH v3 3/5] page_alloc: Introduce zone_movable_limit[] to keep movable limit for nodes

2012-12-11 Thread Jianguo Wu
On 2012/12/11 20:24, Simon Jeons wrote: > On Tue, 2012-12-11 at 11:07 +0800, Jianguo Wu wrote: >> On 2012/12/11 10:33, Tang Chen wrote: >> >>> This patch introduces a new array zone_movable_limit[] to store the >>> ZONE_MOVABLE limit from movablecore_map boot option for all nodes. >>> The

Re: [PATCH] regulator: core: Fix logic to determinate if regulator can change voltage

2012-12-11 Thread Mark Brown
On Tue, Dec 11, 2012 at 08:36:37PM +0800, Axel Lin wrote: > Having a linear_min_sel setting means the first linear_min_sel selectors are > invalid. We need to subtract linear_min_sel when use n_voltages to determinate > if regulator can change voltage. Applied, thanks. signature.asc

Re: [RFC][PATCH RT 3/4] sched/rt: Use IPI to trigger RT task push migration instead of pulling

2012-12-11 Thread Thomas Gleixner
On Mon, 10 Dec 2012, Steven Rostedt wrote: > On Mon, 2012-12-10 at 17:15 -0800, Frank Rowand wrote: > > > I should have also mentioned some previous experience using IPIs to > > avoid runq lock contention on wake up. Someone encountered IPI > > storms when using the TTWU_QUEUE feature, thus it

Re: [PATCH net-next rfc 0/2] Allow unpriveledge user to disable tuntap queue

2012-12-11 Thread Michael S. Tsirkin
On Tue, Dec 11, 2012 at 07:03:45PM +0800, Jason Wang wrote: > This series is an rfc that tries to solve the issue that the queues of tuntap > could not be disabled/enabled by unpriveledged user. This is needed for > unpriveledge userspace such as qemu since guest may change the number of > queues

[PATCH] avoid entropy starvation due to stack protection

2012-12-11 Thread Stephan Mueller
Hi Ted, kernel hackers, Some time ago, I noticed the fact that for every newly executed process, the function create_elf_tables requests 16 bytes of randomness from get_random_bytes. This is easily visible when calling while [ 1 ] do cat /proc/sys/kernel/random/entropy_avail

Re: [PATCH 5/6] ACPI: Replace struct acpi_bus_ops with enum type

2012-12-11 Thread Rafael J. Wysocki
On Monday, December 10, 2012 06:26:08 PM Yinghai Lu wrote: > On Mon, Dec 10, 2012 at 5:28 PM, Rafael J. Wysocki wrote: > >> > >> OK, thanks for the pointers. I actually see more differences between our > >> patchsets. For one example, you seem to have left the parent->ops.bind() > >> stuff in

Re: [PATCH 3/3 v2] iio: add rtc-driver for HID sensors of type time

2012-12-11 Thread Alexander Holler
Am 11.12.2012 10:40, schrieb Lars-Peter Clausen: Yes, move the header or merge into existing one as makes sense. I'm not pulling this driver into the IIO tree (unless for some reason Alessandro wants me to and I can't think why he would...). Alessandro has been pretty quiet for quite some

[PATCH] regulator: core: Fix logic to determinate if regulator can change voltage

2012-12-11 Thread Axel Lin
Having a linear_min_sel setting means the first linear_min_sel selectors are invalid. We need to subtract linear_min_sel when use n_voltages to determinate if regulator can change voltage. Signed-off-by: Axel Lin --- drivers/regulator/core.c |2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH v4 1/2] iommu/shmobile: Add iommu driver for Renesas IPMMU modules

2012-12-11 Thread Laurent Pinchart
Hi Eiraku-san, On Tuesday 11 December 2012 19:10:42 Hideki EIRAKU wrote: > On Mon, 10 Dec 2012 16:55:58 +0100 Laurent Pinchart wrote: > > On Monday 15 October 2012 17:34:52 Hideki EIRAKU wrote: > >> This is the Renesas IPMMU driver and IOMMU API implementation. > >> > >> The IPMMU module

WARNING: at drivers/gpu/drm/i915/i915_gem.c:3437 i915_gem_object_pin+0x151/0x1a0()

2012-12-11 Thread Nikola Pajkovsky
Hey folks, looks like we still have some oops in i915. i915 maintainers do you have any ideas what's going on? I will try to trigger that oops later today and provide more information. [10733.442608] WARNING: at drivers/gpu/drm/i915/i915_gem.c:3437 i915_gem_object_pin+0x151/0x1a0()

Re: [PATCH net-next rfc 2/2] tuntap: allow unpriveledge user to enable and disable queues

2012-12-11 Thread Michael S. Tsirkin
On Tue, Dec 11, 2012 at 07:03:47PM +0800, Jason Wang wrote: > Currently, when a file is attached to tuntap through TUNSETQUEUE, the uid/gid > and CAP_NET_ADMIN were checked, and we use this ioctl to create and destroy > queues. Sometimes, userspace such as qemu need to the ability to enable and >

Re: [PATCH v3 3/5] page_alloc: Introduce zone_movable_limit[] to keep movable limit for nodes

2012-12-11 Thread Simon Jeons
On Tue, 2012-12-11 at 11:07 +0800, Jianguo Wu wrote: > On 2012/12/11 10:33, Tang Chen wrote: > > > This patch introduces a new array zone_movable_limit[] to store the > > ZONE_MOVABLE limit from movablecore_map boot option for all nodes. > > The function sanitize_zone_movable_limit() will find

[PATCH V3 2/2] MCE: fix an error of mce_bad_pages statistics

2012-12-11 Thread Xishi Qiu
1) adjust the function structure, there are too many return points randomly intermingled with some "goto done" return points. 2) use atomic_long_inc instead of atomic_long_add. Signed-off-by: Xishi Qiu Signed-off-by: Jiang Liu --- mm/memory-failure.c | 34

[PATCH V3 1/2] MCE: fix an error of mce_bad_pages statistics

2012-12-11 Thread Xishi Qiu
1) move poisoned page check at the beginning of the function. 2) add page_lock to avoid unpoison clear the flag. Signed-off-by: Xishi Qiu Signed-off-by: Jiang Liu --- mm/memory-failure.c | 43 ++- 1 files changed, 22 insertions(+), 21 deletions(-)

[PATCH V3 0/2] MCE: fix an error of mce_bad_pages statistics

2012-12-11 Thread Xishi Qiu
When we use "/sys/devices/system/memory/soft_offline_page" to offline a *free* page, the value of mce_bad_pages will be added, and the page is set HWPoison flag, but it is still managed by page buddy alocator. $ cat /proc/meminfo | grep HardwareCorrupted shows the value. If we offline the same

Re: [PATCH, 3.7-rc7, RESEND] fs: revert commit bbdd6808 to fallocate UAPI

2012-12-11 Thread Steven Whitehouse
Hi, On Mon, 2012-12-10 at 13:20 -0500, Theodore Ts'o wrote: > A sentence or two got chopped out during an editing pass. Let me try > that again so it's a bit clearer what I was trying to say > > Sure, but if the block device supports WRITE_SAME or persistent > discard, then presumably

Re: [PATCH 0/18] sched: simplified fork, enable load average into LB and power awareness scheduling

2012-12-11 Thread Alex Shi
On 12/11/2012 08:51 AM, Alex Shi wrote: > On Mon, Dec 10, 2012 at 4:22 PM, Alex Shi wrote: >> This patchset base on tip/sched/core tree temporary, since it is more >> steady than tip/master. and it's easy to rebase on tip/master. >> >> It includes 3 parts changes. >> >> 1, simplified fork, patch

<    1   2   3   4   5   6   7   8   9   10   >