[PATCH] extcon: trivial: kfree missed from remove path

2012-10-20 Thread anish kumar
From: anish kumar Extcon core doesn't free the memory when we do unregister. Kfree is added in the remove path as it was missing. Signed-off-by: anish kumar --- drivers/extcon/extcon-max77693.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git

Re: [PATCH] extcon: driver model release call not needed

2012-10-20 Thread anish kumar
Hi Choi, This is based on http://git.infradead.org/users/kmpark/linux-samsung this branch. anish On Sun, 2012-10-21 at 13:46 +0900, anish kumar wrote: > From: anish kumar > > There was a case where free and list_del can be called twice > on the same pointer.So fixed it by re-arranging the code

[PATCH] extcon: driver model release call not needed

2012-10-20 Thread anish kumar
From: anish kumar There was a case where free and list_del can be called twice on the same pointer.So fixed it by re-arranging the code and removing a function which was not needed. Signed-off-by: anish kumar --- drivers/extcon/extcon-class.c | 71 ++---

Re: BUG: 1bbbbe7 (x86: Exclude E820_RESERVED regions...) PANIC on boot

2012-10-20 Thread Jacob Shin
On Sat, Oct 20, 2012 at 09:01:43PM -0700, Yinghai Lu wrote: > On Sat, Oct 20, 2012 at 5:17 PM, Tom Rini wrote: > > On 10/20/12 17:11, Shin, Jacob wrote: > >> Hi could you please attach the dmesg output? Before rc2 is fine as well. > >> I would like to see the E820 table. Thank you, > > > > dmesg

Re: [PATCH 2/5 v6] gpio: Add sysfs support to block GPIO API

2012-10-20 Thread Greg KH
On Sat, Oct 20, 2012 at 12:21:45PM +0200, Roland Stigge wrote: > This patch adds sysfs support to the block GPIO API. > > Signed-off-by: Roland Stigge Thanks for the updates, looks good to me: Signed-off-by: Greg Kroah-Hartman -- To unsubscribe from this list: send the line "unsubscribe

Re: [Perf] Adding timeout option

2012-10-20 Thread abhishek agarwal
sleep does not offer a good timeout resolution and it is not a good option (according to me) either. perfmon had "timeout" option and i guess, same do oprofile. On Sat, Oct 20, 2012 at 1:58 AM, Pádraig Brady wrote: > On 10/13/2012 08:54 AM, abhishek agarwal wrote: >> >> Hi folks.. >> >> I was

Re: BUG: 1bbbbe7 (x86: Exclude E820_RESERVED regions...) PANIC on boot

2012-10-20 Thread Yinghai Lu
On Sat, Oct 20, 2012 at 5:17 PM, Tom Rini wrote: > On 10/20/12 17:11, Shin, Jacob wrote: >> Hi could you please attach the dmesg output? Before rc2 is fine as well. >> I would like to see the E820 table. Thank you, > > dmesg is quite long so I've put it on pastebin: http://pastebin.com/4eSPEAvB >

Re: [GIT PULL] Linux KVM tool for v3.7-rc0

2012-10-20 Thread Yinghai Lu
On Sat, Oct 20, 2012 at 8:07 PM, Dave Airlie wrote: > > Why couldn't this script just be a wrapper around qemu? > > I get the kvm developers developing features that isn't ideal, but for > the quick boot a kernel tests, I don't see why a well maintained qemu > wrapper isn't superior. I hate

Re: [GIT PULL] Linux KVM tool for v3.7-rc0

2012-10-20 Thread Dave Airlie
On Sun, Oct 21, 2012 at 4:14 AM, Borislav Petkov wrote: > On Sat, Oct 20, 2012 at 06:04:36PM +1100, Stephen Rothwell wrote: >> So are there any compelling arguments from the proponents, or can >> I remove this from linux-next (and have it removed from the tip >> auto-latest branch)? > > FWIW, I

Re: question on NUMA page migration

2012-10-20 Thread Rik van Riel
On 10/20/2012 10:39 PM, Ni zhan Chen wrote: On 10/19/2012 11:53 PM, Rik van Riel wrote: Hi Andrea, Peter, I have a question on page refcounting in your NUMA page migration code. In Peter's case, I wonder why you introduce a new MIGRATE_FAULT migration mode. If the normal page migration /

Re: question on NUMA page migration

2012-10-20 Thread Ni zhan Chen
On 10/19/2012 11:53 PM, Rik van Riel wrote: Hi Andrea, Peter, I have a question on page refcounting in your NUMA page migration code. In Peter's case, I wonder why you introduce a new MIGRATE_FAULT migration mode. If the normal page migration / compaction logic can do without taking an extra

Re: Re: Re: A reliable kernel panic (3.6.2) and system crash when visiting a particular website

2012-10-20 Thread Alan Stern
On Sat, 20 Oct 2012, Artem S. Tashkinov wrote: > You don't get me - I have *no* VirtualBox (or any proprietary) modules running > - but I can reproduce this problem using *the same system running under* > VirtualBox > in Windows 7 64. > > It's almost definitely either a USB driver bug or

Re: [PATCH 1/2] staging: android: checkpatch.pl fixes

2012-10-20 Thread Joe Perches
On Sun, 2012-10-21 at 12:05 +1000, Cruz Julian Bishop wrote: > is there currently any way to insert, say, > a comment that filters out the next line for checkpatch > errors? > > For example, > > /* checkpatch_ignore_(rulename) */ > (Long line that can't be broken here) Nope. checkpatch is a

Re: [PATCH 1/2] staging: android: checkpatch.pl fixes

2012-10-20 Thread Cruz Julian Bishop
On Sat, 2012-10-20 at 18:05 -0700, Joe Perches wrote: > On Sat, 2012-10-20 at 23:33 +0100, Ken O'Brien wrote: > > Fixed all instances of strings spanning multiple lines from checkpatch.pl. > [] > > diff --git a/drivers/staging/android/binder.c > > b/drivers/staging/android/binder.c > [] > > @@

[PATCH] module_signing: fix printk format warning

2012-10-20 Thread Randy Dunlap
From: Randy Dunlap kernel/module_signing.c:195:2: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'size_t' Signed-off-by: Randy Dunlap Cc: David Howells --- kernel/module_signing.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---

Re: Re: Re: Re: A reliable kernel panic (3.6.2) and system crash when visiting a particular website

2012-10-20 Thread Artem S. Tashkinov
> On Oct 21, 2012, Borislav Petkov wrote: > > On Sat, Oct 20, 2012 at 11:15:17PM +, Artem S. Tashkinov wrote: > > You don't get me - I have *no* VirtualBox (or any proprietary) modules > > running > > Ok, good. We got that out of the way - I wanted to make sure after you > replied with two

Re: [PATCH] menuconfig: Replace CIRCLEQ by list_head-style lists.

2012-10-20 Thread Yaakov (Cygwin/X)
On Sat, 2012-10-20 at 13:56 -0400, Benjamin Poirier wrote: > From: Benjamin Poirier > menuconfig: Replace CIRCLEQ by list_head-style lists > > sys/queue.h and CIRCLEQ in particular have proven to cause portability > problems (reported on Debian Sarge, Cygwin and FreeBSD) > > Reported-by: Tetsuo

Re: [PATCH] menuconfig: Replace CIRCLEQ by list_head-style lists.

2012-10-20 Thread Tetsuo Handa
Yann E. MORIN wrote: > Benjamin, All, > > On Saturday 20 October 2012 Benjamin Poirier wrote: > > From: Benjamin Poirier > > > > sys/queue.h and CIRCLEQ in particular have proven to cause portability > > problems (reported on Debian Sarge, Cygwin and FreeBSD) > > > > Reported-by: Tetsuo Handa

Re: [PATCH 1/2] staging: android: checkpatch.pl fixes

2012-10-20 Thread Joe Perches
On Sat, 2012-10-20 at 23:33 +0100, Ken O'Brien wrote: > Fixed all instances of strings spanning multiple lines from checkpatch.pl. [] > diff --git a/drivers/staging/android/binder.c > b/drivers/staging/android/binder.c [] > @@ -556,7 +556,7 @@ static int binder_update_page_range(struct

Re: Re: Re: A reliable kernel panic (3.6.2) and system crash when visiting a particular website

2012-10-20 Thread Borislav Petkov
On Sat, Oct 20, 2012 at 11:15:17PM +, Artem S. Tashkinov wrote: > You don't get me - I have *no* VirtualBox (or any proprietary) modules > running Ok, good. We got that out of the way - I wanted to make sure after you replied with two other possibilities of the system freezing. > - but I can

Re: BUG: 1bbbbe7 (x86: Exclude E820_RESERVED regions...) PANIC on boot

2012-10-20 Thread Tom Rini
On 10/20/12 17:11, Shin, Jacob wrote: > Hi could you please attach the dmesg output? Before rc2 is fine as well. > I would like to see the E820 table. Thank you, dmesg is quite long so I've put it on pastebin: http://pastebin.com/4eSPEAvB -- Tom -- To unsubscribe from this list: send the line

BUG: 1bbbbe7 (x86: Exclude E820_RESERVED regions...) PANIC on boot

2012-10-20 Thread Tom Rini
Hello all, I grabbed 3.7-rc2 and found the following on boot: PANIC: early exception 08 rip 246:10 error 81441d7f cr2 0 A git bisect says that this problems came from: 1e779aabe1f0768c2bf8f8c0a5583679b54a is the first bad commit commit 1e779aabe1f0768c2bf8f8c0a5583679b54a Author: Jacob

Re: Re: Re: A reliable kernel panic (3.6.2) and system crash when visiting a particular website

2012-10-20 Thread Artem S. Tashkinov
You don't get me - I have *no* VirtualBox (or any proprietary) modules running - but I can reproduce this problem using *the same system running under* VirtualBox in Windows 7 64. It's almost definitely either a USB driver bug or video4linux driver bug: I'm CC'ing linux-media and linux-usb

Re: Re: A reliable kernel panic (3.6.2) and system crash when visiting a particular website

2012-10-20 Thread Borislav Petkov
On Sat, Oct 20, 2012 at 10:32:28PM +0200, Pavel Machek wrote: > On Sat 2012-10-20 17:41:49, Artem S. Tashkinov wrote: > > On Oct 20, 2012, Borislav Petkov wrote: > > > > > Yeah, your kernel is tainted with a proprietary module (vbox*, etc). Can > > > you reproduce your corruptions (this is what

Re: [PATCH 3/3] workqueue: remove unused argument of wq_worker_waking_up()

2012-10-20 Thread Tejun Heo
On Sun, Oct 21, 2012 at 01:30:07AM +0900, Joonsoo Kim wrote: > Commit 63d95a91 ('workqueue: use @pool instead of @gcwq or @cpu where > applicable') changes an approach to access nr_running. > Thus, wq_worker_waking_up() doesn't use @cpu anymore. > Remove it and remove comment related to it. > >

Re: [PATCH 2/3] workqueue: trivial fix for return statement in work_busy()

2012-10-20 Thread Tejun Heo
On Sun, Oct 21, 2012 at 01:30:06AM +0900, Joonsoo Kim wrote: > Return type of work_busy() is unsigned int. > There is return statement returning boolean value, 'false' in work_busy(). > It is not problem, because 'false' may be treated '0'. > However, fixing it would make code robust. > >

Re: [PATCH cgroup/for-3.7-fixes 1/2] Revert "cgroup: Remove task_lock() from cgroup_post_fork()"

2012-10-20 Thread Tejun Heo
Hello, Frederic. On Sat, Oct 20, 2012 at 02:21:43PM -0400, Frederic Weisbecker wrote: > CPU 0 > CPU 1 > > cgroup_task_migrate { > task_lock(p) > rcu_assign_pointer(tsk->cgroups, newcg); > task_unlock(tsk); > > write_lock(_set_lock); >

[PATCH 2/2] staging: android: binder.c: checkpatch.pl

2012-10-20 Thread Ken O'Brien
Fixed 3 instances of "WARNING: static const char * array should probably be static const char * const" warnings from checkpatch Signed-off-by: Ken O'Brien --- drivers/staging/android/binder.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

[PATCH 1/2] staging: android: checkpatch.pl fixes

2012-10-20 Thread Ken O'Brien
Fixed all instances of strings spanning multiple lines from checkpatch.pl. Signed-off-by: Ken O'Brien --- drivers/staging/android/binder.c | 148 +++ 1 file changed, 74 insertions(+), 74 deletions(-) diff --git a/drivers/staging/android/binder.c

[PATCH] kconfig: fix building the qconf frontend

2012-10-20 Thread Yann E. MORIN
- 'offsetof' is already defined in stddef - to avoid issues with old systems still missing offsetof, just protect our definition between #ifndef...#endif - 'new' is a reserved keyword in C++: - rename the variable - protect the whole file with the usual #ifdef __cplusplus

Re: Linux 3.7-rc1 (nouveau_bios_score oops).

2012-10-20 Thread Marcin Slusarz
On Sat, Oct 20, 2012 at 11:20:36PM +0200, Heinz Diehl wrote: > On 20.10.2012, Marcin Slusarz wrote: > > > Try this one. > > It works, now I can boot again. However, nouveau seems to be dead now. > The dmesg output with your patch on top of 3.7-rc1 is: > > [3.685909] [drm] Initialized i915

Re: [PATCH] menuconfig: Replace CIRCLEQ by list_head-style lists.

2012-10-20 Thread Yann E. MORIN
Benjamin, All, On Saturday 20 October 2012 Benjamin Poirier wrote: > From: Benjamin Poirier > > sys/queue.h and CIRCLEQ in particular have proven to cause portability > problems (reported on Debian Sarge, Cygwin and FreeBSD) > > Reported-by: Tetsuo Handa > Signed-off-by: Benjamin Poirier

Re: Re: Re: A reliable kernel panic (3.6.2) and system crash when visiting a particular website

2012-10-20 Thread Artem S. Tashkinov
Hi, I can only reproduce this panic when my USB webcamera is plugged in - when I click settings in Adobe Flash it sends some commands to my USB webcam using, presumably, Video4Linux API calls which cause a kernel hard crash. Your kernel debug features haven't helped at all, even the virtual

Re: [PATCH] acpi/cpuidle: reinitialize power_usage values when adding/removing C-states

2012-10-20 Thread Daniel Lezcano
On 10/19/2012 11:50 PM, Julius Werner wrote: > When cpuidle drivers do not supply explicit power_usage values, > cpuidle/driver.c inserts dummy values instead. When a running processor > dynamically gains new C-states (e.g. after ACPI events), the power_usage > values of those states will stay

Re: Linux 3.7-rc1 (nouveau_bios_score oops).

2012-10-20 Thread Marcin Slusarz
On Sat, Oct 20, 2012 at 11:42:17PM +0200, Marcin Slusarz wrote: > On Sat, Oct 20, 2012 at 11:20:36PM +0200, Heinz Diehl wrote: > > On 20.10.2012, Marcin Slusarz wrote: > > > > > Try this one. > > > > It works, now I can boot again. However, nouveau seems to be dead now. > > The dmesg output

Re: Linux 3.7-rc1 (nouveau_bios_score oops).

2012-10-20 Thread Marcin Slusarz
On Sat, Oct 20, 2012 at 11:20:36PM +0200, Heinz Diehl wrote: > On 20.10.2012, Marcin Slusarz wrote: > > > Try this one. > > It works, now I can boot again. However, nouveau seems to be dead now. > The dmesg output with your patch on top of 3.7-rc1 is: > > [3.685909] [drm] Initialized i915

Re: [PATCH] RCU: update docs to include kfree_rcu()

2012-10-20 Thread Paul E. McKenney
On Fri, Oct 19, 2012 at 09:48:30AM -0700, Kees Cook wrote: > Mention kfree_rcu() in the call_rcu() section. Additionally fix the > example code for list replacement that used the wrong structure element. Good catch! Queued, and thank you for your review and feedback! ;-)

Re: [PATCH] menuconfig: Replace CIRCLEQ by list_head-style lists.

2012-10-20 Thread Yann E. MORIN
Benjamin, All, On Saturday 20 October 2012 Benjamin Poirier wrote: > From: Benjamin Poirier > > sys/queue.h and CIRCLEQ in particular have proven to cause portability > problems (reported on Debian Sarge, Cygwin and FreeBSD) > > Reported-by: Tetsuo Handa > Signed-off-by: Benjamin Poirier

Re: Linux 3.7-rc1 (nouveau_bios_score oops).

2012-10-20 Thread Heinz Diehl
On 20.10.2012, Marcin Slusarz wrote: > Try this one. It works, now I can boot again. However, nouveau seems to be dead now. The dmesg output with your patch on top of 3.7-rc1 is: [3.685909] [drm] Initialized i915 1.6.0 20080730 for :00:02.0 on minor 0 [3.687784] nouveau [

Re: Re: Re: A reliable kernel panic (3.6.2) and system crash when visiting a particular website

2012-10-20 Thread Artem S. Tashkinov
On Oct 21, 2012, Borislav Petkov wrote: > Ok, here's what you can try: > > * You say this happens with google chrome. Does it happen if you use > another browser: firefox, etc? > > * Can you build a 64-bit kernel and try the same with it? The 32-bit > userspace should work in compat mode just

cryptsetup not working under 3.6 - regression from 3.4?

2012-10-20 Thread Tvrtko Ursulin
Hi all, I can't open my LUKS formatted crypto files in 3.6 any more while 3.4 works fine. Error is: # cryptsetup --key-file=- luksOpen /luks.file target Enter passphrase: device-mapper: reload ioctl on failed: No such file or directory Failed to setup dm-crypt key mapping for device

Re: Linux 3.7-rc1 (nouveau_bios_score oops).

2012-10-20 Thread Marcin Slusarz
On Sat, Oct 20, 2012 at 10:28:46PM +0200, Marcin Slusarz wrote: > On Sat, Oct 20, 2012 at 12:42:38PM +0200, Heinz Diehl wrote: > > On 20.10.2012, Martin Peres wrote: > > > > > Can you test the attached patch too ? I rebased the previous one I sent on > > > top on 3.7-rc1 as I accidentally used

Re: Re: A reliable kernel panic (3.6.2) and system crash when visiting a particular website

2012-10-20 Thread Pavel Machek
On Sat 2012-10-20 17:41:49, Artem S. Tashkinov wrote: > On Oct 20, 2012, Borislav Petkov wrote: > > > Yeah, your kernel is tainted with a proprietary module (vbox*, etc). Can > > you reproduce your corruptions (this is what it looks like) without that > > module? > > Yes, I can reproduce this

Re: Linux 3.7-rc1 (nouveau_bios_score oops).

2012-10-20 Thread Marcin Slusarz
On Sat, Oct 20, 2012 at 12:42:38PM +0200, Heinz Diehl wrote: > On 20.10.2012, Martin Peres wrote: > > > Can you test the attached patch too ? I rebased the previous one I sent on > > top on 3.7-rc1 as I accidentally used an older version. > > Yes, of course. > > Tried it. Unfortunately, the

Linux 3.7-rc2

2012-10-20 Thread Linus Torvalds
For the last few months, it's almost become a habit of mine to make the occasional release from the airport while flying out somewhere. And this is another such one. Go free PDX airport wireless! Anyway, it's been roughly a week, and -rc2 is out. The most noticeable thing tends to be fixing

[ANNOUNCE] 3.6.2-rt4

2012-10-20 Thread Thomas Gleixner
Dear RT Folks, I'm pleased to announce the 3.6.2-rt4 release. rt4 is just an update to 3.6.2. The not announced 3.6.1-rt3 is an intermediate release with a single change. Changes since 3.6.1-rt2: * Remove the softirq noise printk The delta patch against 3.6.1-rt2 is appended below and

Re: Initial report on F2FS filesystem performance

2012-10-20 Thread Pavel Machek
On Tue 2012-10-16 13:07:03, Sooman Jeong wrote: > > This is a brief summary of our initial filesystem performance study of f2fs > against existing two filesystems in linux: EXT4, NILFS2, and f2fs. > Hmm, flashes are actually optimized for VFAT, right? Can you compare against that? What about

[PATCH v2 2/3] cpusets: add load avgerage interface

2012-10-20 Thread Andrea Righi
Add the new file loadavg to report the load average of the cpus assigned to the cpuset cgroup. The load average is reported using the typical three values as they appear in /proc/loadavg, averaged over 1, 5 and 15 minutes. Example: # cat /sys/fs/cgroup/cpuset/foo/cpuset.loadavg 3.98 2.64

[PATCH v2 1/3] sched: introduce distinct per-cpu load average

2012-10-20 Thread Andrea Righi
Account load average, nr_running and nr_uninterruptible tasks per-cpu. The new task_struct attribute on_cpu_uninterruptible is added to properly keep track of the cpu at deactivate time, when the task is set to the uninterruptible sleep state. Moreover, rq->nr_uninterruptible is converted to a

[PATCH v2 3/3] cpusets: add documentation of the loadavg file

2012-10-20 Thread Andrea Righi
Signed-off-by: Andrea Righi --- Documentation/cgroups/cpusets.txt |1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/cgroups/cpusets.txt b/Documentation/cgroups/cpusets.txt index cefd3d8..d5ddc36 100644 --- a/Documentation/cgroups/cpusets.txt +++

[PATCH v2 0/3] distinct load average per-cpuset

2012-10-20 Thread Andrea Righi
Overview The cpusets subsystem allows to assign a different set of CPUs to a cgroup. A typical use case is to split large systems in small CPU/memory partitions and isolate certain users/applications in these subsets of the system. Sometimes, to have a quick overview of the state of each

[PATCH] lockdep: Use KSYM_NAME_LEN'ed buffer for __get_key_name

2012-10-20 Thread Cyrill Gorcunov
Not a big deal, but since other __get_key_name callers use it lets be consistent. Signed-off-by: Cyrill Gorcunov --- kernel/lockdep_proc.c |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Index: linux-2.6.git/kernel/lockdep_proc.c

[ANNOUNCE] 3.2.32-rt48

2012-10-20 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 3.2.32-rt48 stable release. This release is just an update to the new stable 3.2.32 version and no RT specific changes have been made. You can get this release via the git tree at:

[PATCH 1/4] brd: change module parameters rd_size, rd_nr, max_part to unsigned

2012-10-20 Thread Hannes Frederic Sowa
All parameters of the module brd are now converted to unsigneds. This saves some less-than-zero checks. As the external user of rd_size (arch/arm/kernel/setup.c:setup_ramdisk) seems to be gone in v3.7-rc1 this variable can later be declared static. While at it, move the (perhaps automatically)

[PATCH 2/4] brd: check for open partitions when BLKFLSBUFing a ram disk

2012-10-20 Thread Hannes Frederic Sowa
Users of partitions on ram disks could accidentally flush the block device with ioctl(BLKFLSBUF) while it is in use. This patch prevents this from happening. This patch also adds a call to rescan_partitions after BLKFLSBUFing, for which a EXPORT_SYMBOL_GPL statement was needed. Otherwise some

[PATCH 3/4] brd: replace list with brd_devices by an idr indexed by minor ids

2012-10-20 Thread Hannes Frederic Sowa
This patch replaces the list of brd_devices with an idr, thus enabling easier block ram disk creation and deletion. Cc: Nick Piggin Signed-off-by: Hannes Frederic Sowa --- drivers/block/brd.c | 136 1 file changed, 106 insertions(+), 30

[PATCH 0/4] brd: sanity checks and dynamic ram disk creation/destroying

2012-10-20 Thread Hannes Frederic Sowa
Hi! While toying around with a library which needs small block devices for quorum management, I came up with these patches to dynamically create and destroy ram disks (I wanted to have non-swappable backed devices). Feedback is appreciated! Change log (since RFC patch

[PATCH 4/4] brd: add miscdevice to control creation and deletion of ram disks

2012-10-20 Thread Hannes Frederic Sowa
This patch adds the miscdevice /dev/brd-control with two ioctls: 1) BRD_CTL_ADD: Instantiates a new ram disk with a given size as parameter. This parameter is filled in with the new minor id on return. 2) BRD_CTL_DEL: Deletes a ram disk. Takes the minor id as parameter. Cc: Nick

[ANNOUNCE] 3.4.14-rt23

2012-10-20 Thread Steven Rostedt
Dear RT Folks, I'm pleased to announce the 3.4.14-rt23 stable release. This release is just an update to the new stable 3.4.14 version and no RT specific changes have been made. You can get this release via the git tree at:

Re: [PATCH cgroup/for-3.7-fixes 1/2] Revert "cgroup: Remove task_lock() from cgroup_post_fork()"

2012-10-20 Thread Frederic Weisbecker
2012/10/20 Frederic Weisbecker : > 2012/10/19 Tejun Heo : >> Hello, Frederic. >> >> On Fri, Oct 19, 2012 at 03:44:20PM -0400, Frederic Weisbecker wrote: >>> > For -stable, I think it's better to revert. If you want to remove >>> > task_lock, let's do it for 3.8. >>> >>> I don't think that a wrong

Re: [PATCH cgroup/for-3.7-fixes 1/2] Revert "cgroup: Remove task_lock() from cgroup_post_fork()"

2012-10-20 Thread Frederic Weisbecker
2012/10/19 Tejun Heo : > Hello, Frederic. > > On Fri, Oct 19, 2012 at 03:44:20PM -0400, Frederic Weisbecker wrote: >> > For -stable, I think it's better to revert. If you want to remove >> > task_lock, let's do it for 3.8. >> >> I don't think that a wrong comment justifies a patch to stable. > >

[PATCH] kvm, svm: Cleanup error statements

2012-10-20 Thread Borislav Petkov
Use __func__ instead of the function name in svm_hardware_enable since those things tend to get out of sync. This also slims down printk line length in conjunction with using pr_err. No functionality change. Cc: Joerg Roedel Cc: Avi Kivity Signed-off-by: Borislav Petkov ---

[PATCH] tools/kvm: Add a .s file rule

2012-10-20 Thread Borislav Petkov
Add a rule to the kvm tool Makefile to build .asm versions of the files. This is good for debugging purposes. Cc: Pekka Enberg Cc: Sasha Levin Cc: Asias He Signed-off-by: Borislav Petkov --- tools/kvm/Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/kvm/Makefile

Re: [GIT PULL] Linux KVM tool for v3.7-rc0

2012-10-20 Thread Borislav Petkov
On Sat, Oct 20, 2012 at 06:04:36PM +1100, Stephen Rothwell wrote: > So are there any compelling arguments from the proponents, or can > I remove this from linux-next (and have it removed from the tip > auto-latest branch)? FWIW, I gave this a run and I have to say, it works as advertized: I built

Re: Re: A reliable kernel panic (3.6.2) and system crash when visiting a particular website

2012-10-20 Thread Borislav Petkov
On Sat, Oct 20, 2012 at 05:41:49PM +, Artem S. Tashkinov wrote: > On Oct 20, 2012, Borislav Petkov wrote: > > > Yeah, your kernel is tainted with a proprietary module (vbox*, etc). Can > > you reproduce your corruptions (this is what it looks like) without that > > module? > > Yes, I can

[PATCH] menuconfig: Replace CIRCLEQ by list_head-style lists.

2012-10-20 Thread Benjamin Poirier
From: Benjamin Poirier sys/queue.h and CIRCLEQ in particular have proven to cause portability problems (reported on Debian Sarge, Cygwin and FreeBSD) Reported-by: Tetsuo Handa Signed-off-by: Benjamin Poirier --- scripts/kconfig/expr.h |5 +-- scripts/kconfig/list.h | 90

Re: [RFC PATCH 8/8] printk: Wake up klogd using irq_work

2012-10-20 Thread Frederic Weisbecker
2012/10/20 Joe Perches : > On Sat, 2012-10-20 at 12:22 -0400, Frederic Weisbecker wrote: >> lets implement the printk tick using irq work. > > Hi Frederic. > > Can you redo this change please against -next in a few days? > > Andrew Morton picked up this series, >

Re: [PATCH] tile: support GENERIC_KERNEL_THREAD and GENERIC_KERNEL_EXECVE

2012-10-20 Thread Al Viro
On Sat, Oct 20, 2012 at 04:34:01PM +0100, Al Viro wrote: > On Sat, Oct 20, 2012 at 09:06:57AM -0400, Chris Metcalf wrote: > > First, the compat_sys_execve() declaration provided in > > arch/tile/include/asm/compat.h isn't right, so I deleted that (you had only > > deleted the PTREGS_SYSCALL

WARNING: at fs/sysfs/inode.c:324 sysfs_hash_and_remove+0xa9/0xb0()

2012-10-20 Thread Richard Weinberger
Hi! I can reliably trigger the following warning by physically detaching my disk array after stopping md1. ---cut--- [ 149.780554] md: md1 stopped. [ 149.780559] md: unbind [ 149.782025] md: export_rdev(sdh1) [ 149.782039] md: unbind [ 149.786026] md: export_rdev(sdg1) [ 149.786038] md:

Re: [PATCH] kconfig/menuconfig: use TAILQ instead of CIRCLEQ

2012-10-20 Thread Yann E. MORIN
Tetuso, All, On Saturday 20 October 2012 Tetsuo Handa wrote: > Michal Marek wrote: > > On 19.10.2012 14:10, Tetsuo Handa wrote: > > > Yann E. MORIN wrote: > > >> So, switch to using TAILQ instead, which are more portable. > > [...] > > > Excuse me, but your patch does not solve my problem because

Re: [Perf] Adding timeout option

2012-10-20 Thread Pádraig Brady
On 10/13/2012 08:54 AM, abhishek agarwal wrote: Hi folks.. I was thinking that why cant we have a timeout option in perf stat command. The timeout feature will help us to profile a process for a stipulated time (preferably in millisecs) and make perf stat return after that time. Eg: perf stat

Re: [RFC PATCH 8/8] printk: Wake up klogd using irq_work

2012-10-20 Thread Joe Perches
On Sat, 2012-10-20 at 12:22 -0400, Frederic Weisbecker wrote: > lets implement the printk tick using irq work. Hi Frederic. Can you redo this change please against -next in a few days? Andrew Morton picked up this series, https://lkml.org/lkml/2012/10/17/41 but it's not yet in -next.

Re: RFC: sign the modules at install time

2012-10-20 Thread Linus Torvalds
On Sat, Oct 20, 2012 at 9:41 AM, Romain Francoise wrote: > > Yes, however the key generation itself is horribly verbose and doesn't mix > very well with the output of a parallel build. Now that the modules are > signed at install time, presumably the key should be generated then as > well, and

Re: RFC: sign the modules at install time

2012-10-20 Thread Romain Francoise
Linus Torvalds writes: > I like how the default makefiles do that "create and use random key" > thing by default. THAT is what I want to see. Yes, however the key generation itself is horribly verbose and doesn't mix very well with the output of a parallel build. Now that the modules are signed

Re: [PATCH] drivers/tty: Folding Android's keyreset driver in sysRQ

2012-10-20 Thread Mathieu Poirier
On 12-10-16 09:35 PM, Arve Hjønnevåg wrote: > On Fri, Oct 5, 2012 at 12:48 PM, Mathieu Poirier > wrote: >> On 12-10-05 12:16 PM, Dmitry Torokhov wrote: >>> On Fri, Oct 05, 2012 at 11:59:29AM -0600, mathieu.poir...@linaro.org wrote: From: "Mathieu J. Poirier" Andrew,

Re: [PATCH v3] rtc: davinci: clean up probe/remove routines

2012-10-20 Thread Hannu Heikkinen
Hi, Sekhar and others, any comments regarding this devm patch for Da Vinci? br, Hannu On 14/10/12 17:03 +0300, Hannu Heikkinen wrote: > Use the devres managed resource functions in the probe routine. > Also affects the remove routine where the previously used free and > release functions are

[PATCH 2/3] workqueue: trivial fix for return statement in work_busy()

2012-10-20 Thread Joonsoo Kim
Return type of work_busy() is unsigned int. There is return statement returning boolean value, 'false' in work_busy(). It is not problem, because 'false' may be treated '0'. However, fixing it would make code robust. Signed-off-by: Joonsoo Kim diff --git a/kernel/workqueue.c

[PATCH 3/3] workqueue: remove unused argument of wq_worker_waking_up()

2012-10-20 Thread Joonsoo Kim
Commit 63d95a91 ('workqueue: use @pool instead of @gcwq or @cpu where applicable') changes an approach to access nr_running. Thus, wq_worker_waking_up() doesn't use @cpu anymore. Remove it and remove comment related to it. Signed-off-by: Joonsoo Kim diff --git a/kernel/sched/core.c

[PATCH 1/3] workqueue: optimize mod_delayed_work_on() when @delay == 0

2012-10-20 Thread Joonsoo Kim
After try_to_grab_pending(), __queue_delayed_work() is invoked in mod_delayed_work_on(). When @delay == 0, we can call __queue_work() directly in order to avoid setting useless timer. Signed-off-by: Joonsoo Kim diff --git a/kernel/workqueue.c b/kernel/workqueue.c index d951daa..c57358e 100644

[PATCH 0/3] workqueue: minor cleanup

2012-10-20 Thread Joonsoo Kim
This patchset do minor cleanup for workqueue code. First patch makes minor behavior change, however, it is trivial. Others doesn't makes any functional difference. These are based on v3.7-rc1 Joonsoo Kim (3): workqueue: optimize mod_delayed_work_on() when @delay == 0 workqueue: trivial fix

Re: A reliable kernel panic (3.6.2) and system crash when visiting a particular website

2012-10-20 Thread Borislav Petkov
On Sat, Oct 20, 2012 at 12:06:55PM +, Artem S. Tashkinov wrote: > Hello, > > I'm running vanilla Linux 3.6.2 x86 on top of CentOS 6.3 userspace. > > Every time when I enter the chat roulette website, right click anywhere and > choose "Settings", > my PC crashes (with or without NVIDIA

[RFC PATCH 1/8] irq_work: Move irq_work_raise() declaration/default definition to arch headers

2012-10-20 Thread Frederic Weisbecker
This optimization doesn't matter much. But this prepares the arch headers that we need to add a new API in order to detect when the arch can trigger self IPIs to implement the irq work. This is necessary later to make printk working in nohz CPUs. Signed-off-by: Frederic Weisbecker Cc: Peter

[RFC PATCH 2/8] irq_work: Let the arch tell us about self-IPI support

2012-10-20 Thread Frederic Weisbecker
This prepares us to make printk working on nohz CPUs using irq work. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Andrew Morton Cc: Steven Rostedt Cc: Paul Gortmaker --- arch/alpha/include/asm/irq_work.h |5 -

[RFC PATCH 5/8] irq_work: Make self-IPIs optable

2012-10-20 Thread Frederic Weisbecker
While queuing an irq work, let the caller choose between triggering a self-IPI right away, provided the arch is able to do so, or waiting for the next timer interrupt to run the work. Some non-urgent enqueuers like printk may prefer not to raise an IPI storm in case of frequent calls on short

[RFC PATCH 0/8] printk: Make it usable on nohz CPUs v2

2012-10-20 Thread Frederic Weisbecker
Hi, So the design is not quite the same here. Instead of using the ad hoc printk_tick() in periodic mode and irq_work on nohz mode, printk is now always using irq_work. In turn, irq_work subsystem is able to let enqueuers choose between IPI or lazy tick hook to execute works, and that in order

[RFC PATCH 6/8] irq_work: Handle queuing without IPI support in dyntick idle mode

2012-10-20 Thread Frederic Weisbecker
If we enqueue a work while in dyntick idle mode and the arch doesn't have self-IPI support, we may not find an opportunity to run the work before a while. In this case, exit the idle loop to re-evaluate irq_work_needs_cpu() and restart the tick. Signed-off-by: Frederic Weisbecker Cc: Peter

[RFC PATCH 8/8] printk: Wake up klogd using irq_work

2012-10-20 Thread Frederic Weisbecker
klogd is woken up asynchronously from the tick in order to do it safely. However if printk is called when the tick is stopped, the reader won't be woken up until the next interrupt, which might not fire before a while. As a result, the user may miss some message. To fix this, lets implement the

[RFC PATCH 7/8] irq_work: Remove CONFIG_HAVE_IRQ_WORK

2012-10-20 Thread Frederic Weisbecker
irq work is supposed to work everywhere because of the irq work hook in the generic timer tick function. I might be missing something though... Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Andrew Morton Cc: Steven Rostedt Cc: Paul Gortmaker

[RFC PATCH 4/8] nohz: Add API to check tick state

2012-10-20 Thread Frederic Weisbecker
We need some quick way to check if the CPU has stopped its tick. This will be useful to implement the printk tick using the irq work subsystem. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Andrew Morton Cc: Steven Rostedt Cc: Paul Gortmaker

[RFC PATCH 3/8] x86: Implement arch_irq_work_has_ipi()

2012-10-20 Thread Frederic Weisbecker
Most of the time, x86 can trigger self-IPIs. Tell irq work subsystem about it. Signed-off-by: Frederic Weisbecker Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Andrew Morton Cc: Steven Rostedt Cc: Paul Gortmaker --- arch/x86/include/asm/irq_work.h |4 1 files

[PATCH] ixgbe: Use is_valid_ether_addr

2012-10-20 Thread Joe Perches
Use the normal kernel test instead of a module specific one. Signed-off-by: Joe Perches --- found when doing that larger style conversion, might as well submit it. drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c | 2 +- drivers/net/ethernet/intel/ixgbe/ixgbe_common.c | 27

Re: [PATCH net-next 04/21] wireless: Convert is__ether_addr uses to eth_addr_

2012-10-20 Thread Arend van Spriel
On 10/19/2012 05:55 AM, Joe Perches wrote: Convert the old ether_addr tests to eth_addr_. Adds api consistency. Acked-by: Arend van Spriel Signed-off-by: Joe Perches --- .../net/wireless/brcm80211/brcmfmac/dhd_linux.c|4 ++-- .../net/wireless/brcm80211/brcmfmac/wl_cfg80211.c |

[GIT PULL] arm64: Fixes for 3.7

2012-10-20 Thread Catalin Marinas
Hi Linus, Please pull the arm64-fixes tag below. Thanks. The following changes since commit ddffeb8c4d0331609ef2581d84de4d763607bd37: Linux 3.7-rc1 (2012-10-14 14:41:04 -0700) are available in the git repository at: git://git.kernel.org/pub/scm/linux/kernel/git/cmarinas/linux-aarch64.git

Build bug because of binutils 2.21

2012-10-20 Thread Steven Rostedt
Peter, Thomas suggested that I email you to decide if a bug I stumbled on with binutils should be cause to blacklist version 2.21. Note, testing against 2.22 does not show this issue. A couple of days ago I went to test 3.6.1-rt2 and while building the i386 kernel, the build failed. I first

Re: question on NUMA page migration

2012-10-20 Thread Rik van Riel
On 10/19/2012 09:23 PM, Ingo Molnar wrote: * Rik van Riel wrote: On 10/19/2012 01:53 PM, Peter Zijlstra wrote: On Fri, 2012-10-19 at 13:13 -0400, Rik van Riel wrote: Another alternative might be to do the put_page inside do_prot_none_numa(). That would be analogous to do_wp_page

Re: [PATCH] mfd: ab8500: add devicetree support for fuelgauge

2012-10-20 Thread Francesco Lavra
Hi Rajanikanth, On 10/16/2012 05:36 AM, Rajanikanth H.V wrote: > From: "Rajanikanth H.V" > > - This patch adds device tree support for fuelgauge driver > - optimize bm devices platform_data usage and of_probe(...) > Note: of_probe() routine for battery managed devices is made > common

[PATCH for-v3.7 2/2] slub: optimize kmalloc* inlining for GFP_DMA

2012-10-20 Thread Joonsoo Kim
kmalloc() and kmalloc_node() of the SLUB isn't inlined when @flags = __GFP_DMA. This patch optimize this case, so when @flags = __GFP_DMA, it will be inlined into generic code. Cc: Christoph Lameter Signed-off-by: Joonsoo Kim diff --git a/include/linux/slub_def.h b/include/linux/slub_def.h

[PATCH for-v3.7 1/2] slub: optimize poorly inlined kmalloc* functions

2012-10-20 Thread Joonsoo Kim
kmalloc() and kmalloc_node() is always inlined into generic code. However, there is a mistake in implemention of the SLUB. In kmalloc() and kmalloc_node() of the SLUB, we try to compare kmalloc_caches[index] with NULL. As it cannot be known at compile time, this comparison is inserted into

Re: [PATCH] perf: Build install-man target when installing

2012-10-20 Thread Arnaldo Carvalho de Melo
Em Sat, Oct 20, 2012 at 01:16:25PM +0200, Borislav Petkov escreveu: > Ping? Merged it to perf/core, thanks for the patch and the ping, - Arnaldo -- 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

Re: [PATCH] tile: support GENERIC_KERNEL_THREAD and GENERIC_KERNEL_EXECVE

2012-10-20 Thread Al Viro
On Sat, Oct 20, 2012 at 09:06:57AM -0400, Chris Metcalf wrote: > First, the compat_sys_execve() declaration provided in > arch/tile/include/asm/compat.h isn't right, so I deleted that (you had only > deleted the PTREGS_SYSCALL trampoline declaration, _compat_sys_execve). > > However, then

  1   2   3   4   >