[PATCH v2] vfio-pci: Use pci "try" reset interface

2014-01-14 Thread Alex Williamson
PCI resets will attempt to take the device_lock for any device to be reset. This is a problem if that lock is already held, for instance in the device remove path. It's not sufficient to simply kill the user process or skip the reset if called after .remove as a race could result in the same

Re: [PATCH] acpi memory hotplug, add parameter to disable memory hotplug [v3]

2014-01-14 Thread Yasuaki Ishimatsu
(2014/01/15 4:21), Prarit Bhargava wrote: > When booting a kexec/kdump kernel on a system that has specific memory hotplug > regions the boot will fail with warnings like: > > [2.939467] swapper/0: page allocation failure: order:9, mode:0x84d0 > [2.946564] CPU: 0 PID: 1 Comm: swapper/0

Re: [RFC][PATCH 3/3] audit: Audit proc cmdline value

2014-01-14 Thread Richard Guy Briggs
On 14/01/14, William Roberts wrote: > The race was non existent. I had the VMA locked. I switched to this to keep > the code that gets the cmdline value almost unchanged to try and reduce > bugs. I can still author a patch on top of this later to optimize. However > the buffer is smaller. Before

Re: [PATCH 0/6] crypto: ccp - more code fixes/cleanup

2014-01-14 Thread Herbert Xu
On Mon, Jan 06, 2014 at 01:33:53PM -0600, Tom Lendacky wrote: > The following series implements a fix to hash length wrapping as well > as some additional fixes and cleanups (proper gfp_t type on some memory > allocations, scatterlist usage improvements, null request result field > checks and

Re: [PATCH net-next] tun/macvtap: limit the packets queued through rcvbuf

2014-01-14 Thread Jason Wang
On 01/14/2014 05:52 PM, Michael S. Tsirkin wrote: > On Tue, Jan 14, 2014 at 04:45:24PM +0800, Jason Wang wrote: >> > On 01/14/2014 04:25 PM, Michael S. Tsirkin wrote: >>> > > On Tue, Jan 14, 2014 at 02:53:07PM +0800, Jason Wang wrote: > >> We used to limit the number of packets queued through

Re: [PATCH] vfio-pci: Use pci "try" reset interface

2014-01-14 Thread Alex Williamson
On Tue, 2014-01-14 at 16:48 -0700, Bjorn Helgaas wrote: > On Mon, Dec 16, 2013 at 3:16 PM, Alex Williamson > wrote: > > PCI resets will attempt to take the device_lock for any device to be > > reset. This is a problem if that lock is already held, for instance > > in the device remove path.

Re: [PATCH v3 13/14] mm, hugetlb: retry if failed to allocate and there is concurrent user

2014-01-14 Thread David Rientjes
On Mon, 6 Jan 2014, Davidlohr Bueso wrote: > > If Andrew agree, It would be great to merge 1-7 patches into mainline > > before your mutex approach. There are some of clean-up patches and, IMO, > > it makes the code more readable and maintainable, so it is worth to merge > > separately. > > Fine

Re: [PATCH v8 4/4] qrwlock: Use smp_store_release() in write_unlock()

2014-01-14 Thread Daniel J Blueman
On 01/15/2014 07:44 AM, Paul E. McKenney wrote: On Tue, Jan 14, 2014 at 10:01:04AM -0800, Richard Henderson wrote: On 01/14/2014 09:08 AM, Matt Turner wrote: On Tue, Jan 14, 2014 at 3:03 AM, Peter Zijlstra wrote: On Tue, Jan 14, 2014 at 10:28:23AM +0800, Daniel J Blueman wrote: Peter, I

Re: [PATCH] regulator: pfuze100-regulator: Fix some checkpatch complaints

2014-01-14 Thread Joe Perches
On Wed, 2014-01-15 at 00:52 -0200, Fabio Estevam wrote: > Fix the following checkpatch error and warning: While you're at it: > diff --git a/drivers/regulator/pfuze100-regulator.c > b/drivers/regulator/pfuze100-regulator.c [] > @@ -309,14 +309,17 @@ static int pfuze_identify(struct pfuze_chip

Re: [patch 7/9] mm: thrash detection-based file cache sizing

2014-01-14 Thread Bob Liu
On 01/15/2014 03:16 AM, Johannes Weiner wrote: > On Tue, Jan 14, 2014 at 09:01:09AM +0800, Bob Liu wrote: >> Hi Johannes, >> >> On 01/11/2014 02:10 AM, Johannes Weiner wrote: >>> The VM maintains cached filesystem pages on two types of lists. One >>> list holds the pages recently faulted into

Re: [PATCH 01/17] tools lib traceevent: Add state member to struct trace_seq

2014-01-14 Thread Steven Rostedt
On Wed, 15 Jan 2014 11:49:28 +0900 Namhyung Kim wrote: > Hi Steve, > > On Tue, 14 Jan 2014 21:00:58 -0500, Steven Rostedt wrote: > > On Wed, 15 Jan 2014 10:45:24 +0900 > > Namhyung Kim wrote: > > > >> > >> @@ -32,8 +33,9 @@ > >> #define TRACE_SEQ_POISON ((void *)0xdeadbeef) > >> #define

Re: [PATCH net-next v2 00/10] use appropriate APIs to get interfaces

2014-01-14 Thread David Miller
From: Ying Xue Date: Wed, 15 Jan 2014 10:23:35 +0800 > Under rtnl_lock protection, we should use __dev_get_name/index() > rather than dev_get_name()/index() to find interface handlers > because the former interfaces can help us avoid to change interface > reference counter. > > v2 changes: > -

[PATCH] regulator: pfuze100-regulator: Fix some checkpatch complaints

2014-01-14 Thread Fabio Estevam
From: Fabio Estevam Fix the following checkpatch error and warning: ERROR: switch and case should be at the same indent #311: FILE: drivers/regulator/pfuze100-regulator.c:311: + switch (value & 0x0f) { [...] + case 0x8: [...] + case 0x0: [...] +

Re: [PATCH RFC] reciprocal_divide: correction/update of the algorithm

2014-01-14 Thread Austin S. Hemmelgarn
On 01/14/2014 06:25 PM, Borislav Petkov wrote: > On Tue, Jan 14, 2014 at 02:45:37PM -0800, Eric Dumazet wrote: >> Even on a Jaguar, the proposed alternative > I don't know what Jaguar you guys are talking about but the Jaguar > I know - Fam16h - has an int hardware divider: > >

Re: [PATCH net-next v2 0/3] r8152: remove limitation

2014-01-14 Thread David Miller
From: Hayes Wang Date: Wed, 15 Jan 2014 10:42:13 +0800 > Remove the limitation between ecm mode and vendor mode. > > v2: replace the patch #3 with "ecm and vendor modes coexist". This looks better, series, applied, thanks. -- To unsubscribe from this list: send the line "unsubscribe

Re: [PATCH 01/17] tools lib traceevent: Add state member to struct trace_seq

2014-01-14 Thread Namhyung Kim
Hi Steve, On Tue, 14 Jan 2014 21:00:58 -0500, Steven Rostedt wrote: > On Wed, 15 Jan 2014 10:45:24 +0900 > Namhyung Kim wrote: > >> >> @@ -32,8 +33,9 @@ >> #define TRACE_SEQ_POISON((void *)0xdeadbeef) >> #define TRACE_SEQ_CHECK(s) \ >> do {

Re: [RFC][PATCH 4/9] mm: slabs: reset page at free

2014-01-14 Thread David Rientjes
On Tue, 14 Jan 2014, Dave Hansen wrote: > diff -puN include/linux/mm.h~slub-reset-page-at-free include/linux/mm.h > --- a/include/linux/mm.h~slub-reset-page-at-free 2014-01-14 > 09:57:57.099666808 -0800 > +++ b/include/linux/mm.h 2014-01-14 09:57:57.110667301 -0800 > @@ -2076,5

linux-next: manual merge of the infiniband tree with the net-next tree

2014-01-14 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the infiniband tree got a conflict in include/linux/mlx4/device.h between commit 7ffdf726cfe0 ("net/mlx4_core: Add basic support for TCP/IP offloads under tunneling") from the net-next tree and commits 4de658036086 ("mlx4_core: Add support for steerable IB UD

Re: [RFC][PATCH 3/9] mm: page->pfmemalloc only used by slab/skb

2014-01-14 Thread David Rientjes
On Tue, 14 Jan 2014, Dave Hansen wrote: > >> page->pfmemalloc does not deserve a spot in 'struct page'. It is > >> only used transiently _just_ after a page leaves the buddy > >> allocator. > > > > Why would we need to do this if we are removing the cmpxchg_double? > > Why do we need the

[PATCH 5/6] virtio: fail adding buffer on broken queues.

2014-01-14 Thread Rusty Russell
Heinz points out that adding buffers to a broken virtqueue (which should "never happen") still works. Failing allows drivers to detect and complain about broken devices. Now drivers are robust, we can add this extra check. Reported-by: Heinz Graalfs Signed-off-by: Rusty Russell ---

[PATCH net-next v2 1/3] r8152: change the descriptor

2014-01-14 Thread Hayes Wang
The r8152 could support RTL8153. Update the relative descriptor. Signed-off-by: Hayes Wang --- drivers/net/usb/Kconfig | 5 +++-- drivers/net/usb/r8152.c | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/net/usb/Kconfig b/drivers/net/usb/Kconfig index

Re: [PATCH] export: declare ksymtab symbols

2014-01-14 Thread Rusty Russell
Andi Kleen writes: >> Cc: Andi Kleen >> Signed-off-by: Johannes Berg > > Acked-by: Andi Kleen Thanks, applied. I added: Fixes: e0f244c63fc9 ("asmlinkage, module: Make ksymtab [...] __visible") Cheers, Rusty. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the

[PATCH 2/6] virtio_blk: don't crash, report error if virtqueue is broken.

2014-01-14 Thread Rusty Russell
A bad implementation of virtio might cause us to mark the virtqueue broken: we'll dev_err() in that case, and the device is useless, but let's not BUG_ON(). ENOMEM or ENOSPC implies the ring is full, and we should try again later (-ENOMEM is documented to happen, but doesn't, as we fall through

[PATCH 1/6] virtio_net: don't crash if virtqueue is broken.

2014-01-14 Thread Rusty Russell
A bad implementation of virtio might cause us to mark the virtqueue broken: we'll dev_err() in that case, and the device is useless, but let's not BUG_ON(). Signed-off-by: Rusty Russell --- drivers/net/virtio_net.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH 6/6] virtio: virtio_break_device() to mark all virtqueues broken.

2014-01-14 Thread Rusty Russell
Good for post-apocalyptic scenarios, like S/390 hotplug. Signed-off-by: Rusty Russell --- drivers/virtio/virtio_ring.c | 15 +++ include/linux/virtio.h | 2 ++ 2 files changed, 17 insertions(+) diff --git a/drivers/virtio/virtio_ring.c b/drivers/virtio/virtio_ring.c index

[PATCH net-next v2 0/3] r8152: remove limitation

2014-01-14 Thread Hayes Wang
Remove the limitation between ecm mode and vendor mode. v2: replace the patch #3 with "ecm and vendor modes coexist". Hayes Wang (3): r8152: change the descriptor r8152: fix the warnings and a error from checkpatch.pl r8152: ecm and vendor modes coexist drivers/net/usb/Kconfig | 5

[PATCH net-next v2 2/3] r8152: fix the warnings and a error from checkpatch.pl

2014-01-14 Thread Hayes Wang
Fix the following warnings and error: - WARNING: usb_free_urb(NULL) is safe this check is probably not required - WARNING: kfree(NULL) is safe this check is probably not required - ERROR: do not use C99 // comments Signed-off-by: Hayes Wang --- drivers/net/usb/r8152.c | 42

[PATCH net-next v2 3/3] r8152: ecm and vendor modes coexist

2014-01-14 Thread Hayes Wang
Remove the limitation that the ecm and r8152 drivers couldn't coexist. - Remove the devices from the blacklist of relative drivers. - Remove usb_driver_set_configuration() from r8152 driver. - Modify the id_table of the r8152 driver for the vendor mode only. Signed-off-by: Hayes Wang ---

[PATCH 4/6] virtio-rng: don't crash if virtqueue is broken.

2014-01-14 Thread Rusty Russell
A bad implementation of virtio might cause us to mark the virtqueue broken: we'll dev_err() in that case, and the device is useless, but let's not BUG(). Signed-off-by: Rusty Russell --- drivers/char/hw_random/virtio-rng.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git

[PATCH 3/6] virtio_balloon: don't crash if virtqueue is broken.

2014-01-14 Thread Rusty Russell
A bad implementation of virtio might cause us to mark the virtqueue broken: we'll dev_err() in that case, and the device is useless, but let's not BUG(). Signed-off-by: Rusty Russell --- drivers/virtio/virtio_balloon.c | 8 +++- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git

Re: [PATCH v8 4/4] qrwlock: Use smp_store_release() in write_unlock()

2014-01-14 Thread Paul E. McKenney
On Wed, Jan 15, 2014 at 07:25:04AM +0700, Linus Torvalds wrote: > On Wed, Jan 15, 2014 at 6:44 AM, Paul E. McKenney > wrote: > > > > Which means that Alpha should be able to similarly emulate 1-byte and > > 2-byte atomics, correct? > > Not reasonably, no. > > The ldl/stc implementation on early

Re: [RFC][PATCH 2/9] mm: slub: abstract out double cmpxchg option

2014-01-14 Thread David Rientjes
On Tue, 14 Jan 2014, Dave Hansen wrote: > > On Tue, 14 Jan 2014, Dave Hansen wrote: > >> I found this useful to have in my testing. I would like to have > >> it available for a bit, at least until other folks have had a > >> chance to do some testing with it. > > > > I dont really see the point

mmotm 2014-01-14-18-13 uploaded

2014-01-14 Thread akpm
The mm-of-the-moment snapshot 2014-01-14-18-13 has been uploaded to http://www.ozlabs.org/~akpm/mmotm/ mmotm-readme.txt says README for mm-of-the-moment: http://www.ozlabs.org/~akpm/mmotm/ This is a snapshot of my -mm patch queue. Uploaded at random hopefully more than once a week. You

Re: [RFC][PATCH 1/9] mm: slab/slub: use page->list consistently instead of page->lru

2014-01-14 Thread David Rientjes
On Tue, 14 Jan 2014, Dave Hansen wrote: > diff -puN > include/linux/mm_types.h~make-slab-use-page-lru-vs-list-consistently > include/linux/mm_types.h > --- a/include/linux/mm_types.h~make-slab-use-page-lru-vs-list-consistently > 2014-01-14 09:57:56.099621967 -0800 > +++

Re: [PATCH 05/17] tools lib traceevent: Make plugin unload function receive pevent

2014-01-14 Thread Steven Rostedt
On Wed, 15 Jan 2014 10:45:28 +0900 Namhyung Kim wrote: > The PEVENT_PLUGIN_UNLOADER function might need some cleanup using > pevent like unregister some handlers. So pass pevent as argument. > > Cc: Jiri Olsa > Signed-off-by: Namhyung Kim Acked-by: Steven Rostedt > --- >

[PATCH net-next v2 05/10] decnet: use __dev_get_by_index instead of dev_get_by_index to find interface

2014-01-14 Thread Ying Xue
The following call chain we can identify that dn_cache_getroute() is protected under rtnl_lock. So if we use __dev_get_by_index() instead of dev_get_by_index() to find interface handlers in it, this would help us avoid to change interface reference counter. rtnetlink_rcv() rtnl_lock()

[PATCH net-next v2 09/10] can: use __dev_get_by_index instead of dev_get_by_index to find interface

2014-01-14 Thread Ying Xue
As cgw_create_job() is always under rtnl_lock protection, __dev_get_by_index() instead of dev_get_by_index() should be used to find interface handler in it having us avoid to change interface reference counter. Cc: Oliver Hartkopp Signed-off-by: Ying Xue Acked-by: Oliver Hartkopp ---

[PATCH net-next v2 01/10] Drivers: Staging: cxt1e1: use __dev_get_name instead of dev_get_name to find interfaces

2014-01-14 Thread Ying Xue
The following call chain denotes that both do_reset() and do_del_chan() are protected under rtnl_lock. If we use __dev_get_by_name() instead of dev_get_by_name() to find interface handlers in them, this would help us avoid to change interface reference counter. dev_ioctl() rtnl_lock()

[PATCH net-next v2 08/10] caif: __dev_get_by_index instead of dev_get_by_index to find interface

2014-01-14 Thread Ying Xue
The following call chains indicate that chnl_net_open() is under rtnl_lock protection as __dev_open() is protected by rtnl_lock. So if __dev_get_by_index() instead of dev_get_by_index() is used to find interface handler in it, this would help us avoid to change interface reference counter.

[PATCH net-next v2 03/10] eql: use __dev_get_by_name instead of dev_get_by_name to find interface

2014-01-14 Thread Ying Xue
The following call chain indicates that eql_ioctl(), eql_enslave(), eql_emancipate(), eql_g_slave_cfg() and eql_s_slave_cfg() are protected under rtnl_lock. So if we use __dev_get_by_name() instead of dev_get_by_name() to find interface handlers in them, this would help us avoid to change

[PATCH net-next v2 02/10] bonding: use __dev_get_by_name instead of dev_get_by_name to find interface

2014-01-14 Thread Ying Xue
The following call chain indicates that bond_do_ioctl() is protected under rtnl_lock. If we use __dev_get_by_name() instead of dev_get_by_name() to find interface handler in it, this would help us avoid to change reference counter of interface once. dev_ioctl() rtnl_lock() dev_ifsioc()

[PATCH net-next v2 06/10] vxlan: use __dev_get_by_index instead of dev_get_by_index to find interface

2014-01-14 Thread Ying Xue
The following call chains indicate that vxlan_fdb_parse() is under rtnl_lock protection. So if we use __dev_get_by_index() instead of dev_get_by_index() to find interface handler in it, this would help us avoid to change interface reference counter. rtnetlink_rcv() rtnl_lock()

[PATCH net-next v2 07/10] batman-adv: use __dev_get_by_index instead of dev_get_by_index to find interface

2014-01-14 Thread Ying Xue
The following call chains indicate that batadv_is_on_batman_iface() is always under rtnl_lock protection as call_netdevice_notifier() is protected by rtnl_lock. So if __dev_get_by_index() rather than dev_get_by_index() is used to find interface handler in it, this would help us avoid to change

[PATCH net-next v2 04/10] dcb: use __dev_get_by_name instead of dev_get_by_name to find interface

2014-01-14 Thread Ying Xue
The following call chain indicates that dcb_doit() is protected under rtnl_lock. So if we use __dev_get_by_name() instead of dev_get_by_name() to find interface handlers in it, this would help us avoid to change interface reference counter. rtnetlink_rcv() rtnl_lock() netlink_rcv_skb()

[PATCH net-next v2 10/10] net: nl80211: __dev_get_by_index instead of dev_get_by_index to find interface

2014-01-14 Thread Ying Xue
As __cfg80211_rdev_from_attrs(), nl80211_dump_wiphy_parse() and nl80211_set_wiphy() are all under rtnl_lock protection, __dev_get_by_index() instead of dev_get_by_index() should be used to find interface handler in them allowing us to avoid to change interface reference counter. Cc: Johannes Berg

linux-next: manual merge of the net-next tree with the mips tree

2014-01-14 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the net-next tree got a conflict in arch/mips/bcm47xx/setup.c between commits dc8db0fd9f9f ("MIPS: BCM47XX: Prepare support for LEDs"), db780310ed48 ("MIPS: BCM47XX: Prepare support for GPIO buttons") and 7fb942c59696 ("MIPS: BCM47XX: fix position of

[PATCH net-next v2 00/10] use appropriate APIs to get interfaces

2014-01-14 Thread Ying Xue
Under rtnl_lock protection, we should use __dev_get_name/index() rather than dev_get_name()/index() to find interface handlers because the former interfaces can help us avoid to change interface reference counter. v2 changes: - Change return value of nl80211_set_wiphy() to 0 in patch #10 by

Re: [PATCH 3/5] perf report: Add --percentage option

2014-01-14 Thread Namhyung Kim
On Tue, 14 Jan 2014 18:25:55 -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Jan 14, 2014 at 01:07:00PM -0800, Andi Kleen escreveu: >> Namhyung Kim writes: >> > >> > +--percentage:: >> > + Determine how to display the overhead percentage of filtered >> > entries. >> >> This should describe

Re: [PATCH V6 6/8] Add EFI stub for ARM

2014-01-14 Thread Roy Franz
On Tue, Jan 14, 2014 at 5:47 PM, Roy Franz wrote: > On Tue, Jan 14, 2014 at 1:05 AM, Ard Biesheuvel > wrote: >> On 10 January 2014 17:30, Roy Franz wrote: >>> This patch adds EFI stub support for the ARM Linux kernel. The EFI stub >>> operates similarly to the x86 stub: it is a shim between

Re: [PATCHv2 2/3] zram: do not pass rw argument to __zram_make_request()

2014-01-14 Thread Minchan Kim
Hello Sergey, On Tue, Jan 14, 2014 at 02:27:23PM +0300, Sergey Senozhatsky wrote: > Do not pass rw argument down the __zram_make_request() -> zram_bvec_rw() > chain, decode it in zram_bvec_rw() instead. Besides, this is the place > where we distinguish READ (+READ AHEAD) and WRITE bio data

Re: [PATCH 03/17] tools lib traceevent: Get rid of malloc_or_die() in trace_seq_init()

2014-01-14 Thread Steven Rostedt
On Wed, 15 Jan 2014 10:45:26 +0900 Namhyung Kim wrote: > Use plain malloc() and check its return value. > > Signed-off-by: Namhyung Kim Acked-by: Steven Rostedt -- Steve > --- > tools/lib/traceevent/trace-seq.c | 7 +-- > 1 file changed, 5 insertions(+), 2 deletions(-) > > diff --git

Re: [PATCH -next] qlcnic: fix compiler warning

2014-01-14 Thread David Miller
From: Martin Kaiser Date: Tue, 14 Jan 2014 16:21:28 +0100 > re-sent as requested by David M. Sorry, dianthong sent his version of the fix meanwhile and I applied his copy. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH 02/17] tools lib traceevent: Check return value of realloc()

2014-01-14 Thread Steven Rostedt
On Wed, 15 Jan 2014 10:45:25 +0900 Namhyung Kim wrote: > If realloc() fails, it'll leak the buffer. Also increate buffer size > only if the allocation succeeded. > > Signed-off-by: Namhyung Kim > --- Acked-by: Steven Rostedt -- Steve -- To unsubscribe from this list: send the line

Re: [PATCH] oprofile: check whether oprofile perf enabled in op_overflow_handler()

2014-01-14 Thread Weng Meiling
On 2014/1/14 23:05, Robert Richter wrote: > On 14.01.14 09:52:11, Weng Meiling wrote: >> On 2014/1/13 16:45, Robert Richter wrote: >>> On 20.12.13 15:49:01, Weng Meiling wrote: > The problem was once triggered on kernel 2.6.34, the main information: <3>BUG: soft lockup - CPU#0 stuck for

Re: [PATCH 01/17] tools lib traceevent: Add state member to struct trace_seq

2014-01-14 Thread Steven Rostedt
On Wed, 15 Jan 2014 10:45:24 +0900 Namhyung Kim wrote: > > @@ -32,8 +33,9 @@ > #define TRACE_SEQ_POISON ((void *)0xdeadbeef) > #define TRACE_SEQ_CHECK(s) \ > do { \ > - if

Re: perf probe: Build error with missing libraries

2014-01-14 Thread Namhyung Kim
Hi Arnaldo, On Tue, 14 Jan 2014 10:09:07 -0300, Arnaldo Carvalho de Melo wrote: > Em Tue, Jan 14, 2014 at 10:41:37AM +0900, Masami Hiramatsu escreveu: >> (2014/01/14 3:14), Arnaldo Carvalho de Melo wrote: >> > Jiri, this is something else for the give-me-more-ponies list for >> > tests/make:

RE: linux-next: manual merge of the akpm-current tree with the char-misc tree

2014-01-14 Thread Ian Munsie
Excerpts from Winkler, Tomas's message of 2014-01-14 19:31:26 +1100: > > Today's linux-next merge of the akpm-current tree got a conflict in > > drivers/misc/mei/init.c between commit 33ec08263147 ("mei: revamp mei > > reset state machine") from the char-misc tree and commit dd045dab2999 > >

Re: livelock during MD device open

2014-01-14 Thread NeilBrown
On Tue, 14 Jan 2014 18:14:46 +0100 Nicolas Schichan wrote: > > > Hi, > > I have recently been trying to find the cause a livelock occurring during MD > device open. > > The livelock happens when a process tries to open an MD device for the > first time and another opens the same MD device

Re: [PATCH 1/3] zram: drop `init_done' struct zram member

2014-01-14 Thread Minchan Kim
On Tue, Jan 14, 2014 at 12:37:38PM +0300, Sergey Senozhatsky wrote: > Introduce init_done() helper function which allows us to drop > `init_done' struct zram member. init_done() uses the fact that > ->init_done == 1 equals to ->meta != NULL. > > Signed-off-by: Sergey Senozhatsky Acked-by:

[PATCH 04/17] tools lib traceevent: Get rid of die() finally!!

2014-01-14 Thread Namhyung Kim
Now all of its users were gone. :) Signed-off-by: Namhyung Kim --- tools/lib/traceevent/event-utils.h | 4 tools/lib/traceevent/parse-utils.c | 44 -- 2 files changed, 48 deletions(-) diff --git a/tools/lib/traceevent/event-utils.h

[PATCHSET 00/17] tools lib traceevent: Plugin unload enhancement

2014-01-14 Thread Namhyung Kim
Hello, When plugins are loaded, they register various event and function handlers. But they don't unregister even after the plugins unloaded so that events could have refererences to non-existing handlers. This patchset added relevant unregister functions to handle that. Note that this is not

[PATCH 02/17] tools lib traceevent: Check return value of realloc()

2014-01-14 Thread Namhyung Kim
If realloc() fails, it'll leak the buffer. Also increate buffer size only if the allocation succeeded. Signed-off-by: Namhyung Kim --- tools/lib/traceevent/trace-seq.c | 13 + 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/tools/lib/traceevent/trace-seq.c

[PATCH 07/17] tools lib traceevent: Add pevent_unregister_print_function()

2014-01-14 Thread Namhyung Kim
When a plugin unloaded it needs to unregister its print handler from pevent. So add unregister function to do it. Cc: Jiri Olsa Signed-off-by: Namhyung Kim --- tools/lib/traceevent/event-parse.c | 23 +++ tools/lib/traceevent/event-parse.h | 2 ++ 2 files changed, 25

[PATCH 05/17] tools lib traceevent: Make plugin unload function receive pevent

2014-01-14 Thread Namhyung Kim
The PEVENT_PLUGIN_UNLOADER function might need some cleanup using pevent like unregister some handlers. So pass pevent as argument. Cc: Jiri Olsa Signed-off-by: Namhyung Kim --- tools/lib/traceevent/event-parse.h | 7 --- tools/lib/traceevent/event-plugin.c| 4 ++--

[PATCH 06/17] tools lib traceevent: Add pevent_unregister_event_handler()

2014-01-14 Thread Namhyung Kim
When a plugin unloaded it needs to unregister its handler from pevent. So add unregister function to do it. Cc: Jiri Olsa Signed-off-by: Namhyung Kim --- tools/lib/traceevent/event-parse.c | 113 - tools/lib/traceevent/event-parse.h | 3 + 2 files changed,

[PATCH 08/17] tools lib traceevent: Unregister handler when function plugin unloaded

2014-01-14 Thread Namhyung Kim
The function handler should be unregistered when the plugin unloaded otherwise it'll try to access invalid memory. Cc: Jiri Olsa Signed-off-by: Namhyung Kim --- tools/lib/traceevent/plugin_function.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/lib/traceevent/plugin_function.c

[PATCH 01/17] tools lib traceevent: Add state member to struct trace_seq

2014-01-14 Thread Namhyung Kim
The trace_seq->state is for tracking errors during the use of trace_seq APIs and getting rid of die() in it. Signed-off-by: Namhyung Kim --- tools/lib/traceevent/Makefile | 2 +- tools/lib/traceevent/event-parse.h | 7 ++ tools/lib/traceevent/trace-seq.c | 46

Re: [PATCH V6 6/8] Add EFI stub for ARM

2014-01-14 Thread Roy Franz
On Tue, Jan 14, 2014 at 1:05 AM, Ard Biesheuvel wrote: > On 10 January 2014 17:30, Roy Franz wrote: >> This patch adds EFI stub support for the ARM Linux kernel. The EFI stub >> operates similarly to the x86 stub: it is a shim between the EFI firmware >> and the normal zImage entry point, and

[PATCH 12/17] tools lib traceevent: Unregister handler when sched_switch plugin unloaded

2014-01-14 Thread Namhyung Kim
The event handlers should be unregistered when the plugin unloaded otherwise they'll try to access invalid memory. Cc: Jiri Olsa Signed-off-by: Namhyung Kim --- tools/lib/traceevent/plugin_sched_switch.c | 12 1 file changed, 12 insertions(+) diff --git

[PATCH 14/17] tools lib traceevent: Unregister handler when cfg80211 plugin unloaded

2014-01-14 Thread Namhyung Kim
The function handler should be unregistered when the plugin unloaded otherwise it'll try to access invalid memory. Cc: Jiri Olsa Signed-off-by: Namhyung Kim --- tools/lib/traceevent/plugin_cfg80211.c | 7 +++ 1 file changed, 7 insertions(+) diff --git

[PATCH 11/17] tools lib traceevent: Unregister handler when kvm plugin unloaded

2014-01-14 Thread Namhyung Kim
The kvm handlers should be unregistered when the plugin unloaded otherwise they'll try to access invalid memory. Cc: Jiri Olsa Signed-off-by: Namhyung Kim --- tools/lib/traceevent/plugin_kvm.c | 30 ++ 1 file changed, 30 insertions(+) diff --git

[PATCH 13/17] tools lib traceevent: Unregister handler when mac80211 plugin unloaded

2014-01-14 Thread Namhyung Kim
The event handler should be unregistered when the plugin unloaded otherwise it'll try to access invalid memory. Cc: Jiri Olsa Signed-off-by: Namhyung Kim --- tools/lib/traceevent/plugin_mac80211.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/tools/lib/traceevent/plugin_mac80211.c

[PATCH 10/17] tools lib traceevent: Unregister handler when kmem plugin unloaded

2014-01-14 Thread Namhyung Kim
The kmem handlers should be unregistered when the plugin unloaded otherwise they'll try to access invalid memory. Cc: Jiri Olsa Signed-off-by: Namhyung Kim --- tools/lib/traceevent/plugin_kmem.c | 22 ++ 1 file changed, 22 insertions(+) diff --git

[PATCH 03/17] tools lib traceevent: Get rid of malloc_or_die() in trace_seq_init()

2014-01-14 Thread Namhyung Kim
Use plain malloc() and check its return value. Signed-off-by: Namhyung Kim --- tools/lib/traceevent/trace-seq.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/lib/traceevent/trace-seq.c b/tools/lib/traceevent/trace-seq.c index 941d35d2cf87..339a0ffa21d5 100644

[PATCH 09/17] tools lib traceevent: Unregister handler when hrtimer plugin unloaded

2014-01-14 Thread Namhyung Kim
The timer handlers should be unregistered when the plugin unloaded otherwise they'll try to access invalid memory. Cc: Jiri Olsa Signed-off-by: Namhyung Kim --- tools/lib/traceevent/plugin_hrtimer.c | 10 ++ 1 file changed, 10 insertions(+) diff --git

[PATCH 17/17] tools lib traceevent: Unregister handler when xen plugin unloaded

2014-01-14 Thread Namhyung Kim
The function handler should be unregistered when the plugin unloaded otherwise it'll try to access invalid memory. Cc: Jiri Olsa Signed-off-by: Namhyung Kim --- tools/lib/traceevent/plugin_xen.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/tools/lib/traceevent/plugin_xen.c

[PATCH 15/17] tools lib traceevent: Unregister handler when jbd2 plugin unloaded

2014-01-14 Thread Namhyung Kim
The function handlers should be unregistered when the plugin unloaded otherwise they'll try to access invalid memory. Cc: Jiri Olsa Signed-off-by: Namhyung Kim --- tools/lib/traceevent/plugin_jbd2.c | 11 +++ 1 file changed, 11 insertions(+) diff --git

[PATCH 16/17] tools lib traceevent: Unregister handler when scsi plugin unloaded

2014-01-14 Thread Namhyung Kim
The function handler should be unregistered when the plugin unloaded otherwise it'll try to access invalid memory. Cc: Jiri Olsa Signed-off-by: Namhyung Kim --- tools/lib/traceevent/plugin_scsi.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/tools/lib/traceevent/plugin_scsi.c

Re: [PATCH] watchdog: add a parameter for stop wdt before register

2014-01-14 Thread Dave Young
On 01/14/14 at 11:24am, Vivek Goyal wrote: > On Tue, Jan 14, 2014 at 12:16:39PM +, One Thousand Gnomes wrote: > > On Tue, 14 Jan 2014 16:23:23 +0800 > > Dave Young wrote: > > > > > In kdump kernel watchdog could interrupt vmcore capturing because we > > > have no way to disable/stop it while

Re: [RFC] sysfs_rename_link() and its usage

2014-01-14 Thread Eric W. Biederman
Veaceslav Falico writes: > On Tue, Jan 14, 2014 at 11:31:39AM -0800, Greg KH wrote: >>On Tue, Jan 14, 2014 at 08:12:08PM +0100, Veaceslav Falico wrote: >>> On Tue, Jan 14, 2014 at 10:21:35AM -0800, Greg KH wrote: >>> >On Tue, Jan 14, 2014 at 06:17:40PM +0100, Veaceslav Falico wrote: >>> >>Hi,

Re: [PATCH v2 0/4]zram: locking redesign

2014-01-14 Thread Andrew Morton
On Wed, 15 Jan 2014 10:29:48 +0900 Minchan Kim wrote: > Oops, I missed Tested-by from Sergey. Really, sorry. > If I have a chance to resend from any review, I will add. Otherwise, > Andrew, Could you add his tested-by? Sure. I normally wouldn't consider such a patchset this late in the kernel

Re: [PATCH 7/7] zram: remove unnecessary lock

2014-01-14 Thread Minchan Kim
Hello Jerome, On Tue, Jan 14, 2014 at 10:29:40AM +0100, Jerome Marchand wrote: > On 01/13/2014 12:19 PM, Minchan Kim wrote: > > read/write lock's performance is really bad compared to > > mutex_lock in write most workload.(AFAIR, recenlty there > > were some effort to enhance it but not sure it

Re: [RFC][PATCH v2 1/3] mm: Create utility function for accessing a tasks commandline value

2014-01-14 Thread David Rientjes
On Mon, 13 Jan 2014, William Roberts wrote: > introduce get_cmdline() for retreiving the value of a processes > proc/self/cmdline value. > > Signed-off-by: William Roberts Acked-by: David Rientjes -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a

Re: [RFC][PATCH v2 2/3] proc: Update get proc_pid_cmdline() to use mm.h helpers

2014-01-14 Thread David Rientjes
On Mon, 13 Jan 2014, William Roberts wrote: > Re-factor proc_pid_cmdline() to use get_cmdline() helper > from mm.h. > > Signed-off-by: William Roberts Acked-by: David Rientjes -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to

Re: [PATCH v2 0/4]zram: locking redesign

2014-01-14 Thread Minchan Kim
On Wed, Jan 15, 2014 at 10:11:06AM +0900, Minchan Kim wrote: > Currently, zram->lock rw_semaphore is coarse-grained so it hurts > for scalability. > This patch try to enhance it with remove the lock in read path. > > [1] uses atomic opeartion so it removes dependency of 32bit stat > from

Re: [v6,2/5] powerpc/book3e: store crit/mc/dbg exception thread info

2014-01-14 Thread Scott Wood
On Wed, Oct 23, 2013 at 05:31:22PM +0800, Tiejun Chen wrote: > We need to store thread info to these exception thread info like something > we already did for PPC32. > > Signed-off-by: Tiejun Chen > > --- > arch/powerpc/kernel/exceptions-64e.S | 22 +++--- > 1 file changed, 19

Re: [PATCH] x86/mm: memblock: switch to use NUMA_NO_NODE

2014-01-14 Thread David Rientjes
On Wed, 8 Jan 2014, Grygorii Strashko wrote: > Update X86 code to use NUMA_NO_NODE instead of MAX_NUMNODES while > calling memblock APIs, because memblock API is changed to use NUMA_NO_NODE and > will produce warning during boot otherwise. > > See: > https://lkml.org/lkml/2013/12/9/898 > > Cc:

Re: [PATCH net-next 10/10] net: nl80211: __dev_get_by_index instead of dev_get_by_index to find interface

2014-01-14 Thread Ying Xue
On 01/14/2014 08:11 PM, Johannes Berg wrote: > On Tue, 2014-01-14 at 15:41 +0800, Ying Xue wrote: > >> @@ -2218,10 +2194,6 @@ static int nl80211_set_wiphy(struct sk_buff *skb, >> struct genl_info *info) >> rdev->wiphy.coverage_class = old_coverage_class; >> } >>

Re: [PATCH] acpi memory hotplug, add parameter to disable memory hotplug [v3]

2014-01-14 Thread Dave Young
On 01/14/14 at 02:21pm, Prarit Bhargava wrote: > When booting a kexec/kdump kernel on a system that has specific memory hotplug > regions the boot will fail with warnings like: > > [2.939467] swapper/0: page allocation failure: order:9, mode:0x84d0 > [2.946564] CPU: 0 PID: 1 Comm:

Re: [PATCH 3/4] fix module autoloading for ACPI enumerated devices

2014-01-14 Thread Zhang Rui
On Tue, 2014-01-14 at 14:41 +, Mark Brown wrote: > On Tue, Jan 14, 2014 at 04:00:17PM +0800, Zhang Rui wrote: > > On Mon, 2014-01-13 at 17:35 +, Mark Brown wrote: > > > On Mon, Jan 13, 2014 at 09:48:31PM +0800, Zhang Rui wrote: > > > > ACPI enumerated devices has ACPI style _HID and _CID

Re: [RFC] hotplug, memory: move register_memory_resource out of the lock_memory_hotplug

2014-01-14 Thread Andrew Morton
On Tue, 14 Jan 2014 17:05:42 -0800 (PST) David Rientjes wrote: > On Tue, 14 Jan 2014, Andrew Morton wrote: > > > From: Andrew Morton > > Subject: mm/memory_hotplug.c: register_memory_resource() fixes > > > > - register_memory_resource() should not go BUG on ENOMEM. That's > > appropriate

Re: [PATCH 1/4] x86, ptdump: Add the functionality to dump an arbitrary pagetable

2014-01-14 Thread Dave Young
On 01/14/14 at 10:18am, H. Peter Anvin wrote: > On 01/13/2014 05:40 PM, Dave Young wrote: > > On 01/13/14 at 06:48am, Arjan van de Ven wrote: > >> On 1/13/2014 4:23 AM, Dave Young wrote: > > > How about do not limit to only if (pgd) case, instead do something > > like below: set

Re: [RFC] hotplug, memory: move register_memory_resource out of the lock_memory_hotplug

2014-01-14 Thread Yasuaki Ishimatsu
(2014/01/15 3:24), Nathan Zimmer wrote: > We don't need to do register_memory_resource() since it has its own lock and > doesn't make any callbacks. > > Also register_memory_resource return NULL on failure so we don't have anything > to cleanup at this point. > > > The reason for this rfc is I

[PATCH v2 1/4] zram: use atomic operation for stat

2014-01-14 Thread Minchan Kim
Some of fields in zram->stats are protected by zram->lock which is rather coarse-grained so let's use atomic operation without explict locking. This patch is ready for removing dependency of zram->lock in read path which is very coarse-grained rw_semaphore. Of course, this patch adds new atomic

[PATCH V3 3/3] power: reset: use syscon driver to parse reboot register from scu

2014-01-14 Thread Feng Kan
Use the syscon driver to parse out the reboot register map and issue reboot via the regmap function. Signed-off-by: Feng Kan --- drivers/power/reset/xgene-reboot.c | 75 +--- 1 files changed, 19 insertions(+), 56 deletions(-) diff --git

[PATCH V3 2/3] arm64: Enable system reset via arch Kconfig for X-Gene system.

2014-01-14 Thread Feng Kan
Select X-Gene reboot driver for X-Gene platform. Signed-off-by: Feng Kan --- arch/arm64/Kconfig |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 249acb9..bfdf029 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@

[PATCH v2 0/4]zram: locking redesign

2014-01-14 Thread Minchan Kim
Currently, zram->lock rw_semaphore is coarse-grained so it hurts for scalability. This patch try to enhance it with remove the lock in read path. [1] uses atomic opeartion so it removes dependency of 32bit stat from zram->lock. [2] introduces table own lock instead of relying on zram->lock. [3]

[PATCH v2 2/4] zram: introduce zram->tb_lock

2014-01-14 Thread Minchan Kim
Currently, table is protected by zram->lock but it's rather coarse-grained lock and it makes hard for scalibility. Let's use own rwlock instead of depending on zram->lock. This patch adds new locking so obviously, it would make slow but this patch is just prepartion for removing coarse-grained

[PATCH V3 1/3] arm64: add reboot dts entry for X-Gene platform.

2014-01-14 Thread Feng Kan
Add missing dts entries for the X-Gene reboot driver. Signed-off-by: Feng Kan --- arch/arm64/boot/dts/apm-storm.dtsi | 10 ++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/arch/arm64/boot/dts/apm-storm.dtsi b/arch/arm64/boot/dts/apm-storm.dtsi index d37d736..7beac9d

[PATCH V3 0/3] Enable X-Gene platform reboot driver.

2014-01-14 Thread Feng Kan
Enable X-Gene platform driver for the X-Gene platform. Change the driver to use syscon to access the system clock unit's system reset register. V2 Change: - Add support for using ACPI resource. V3 Change: - Remove the reboot driver's use of acpi resource patch. - Change

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