Re: BUG: sleeping function called from invalid context at kernel/locking/mutex.c:616

2013-12-04 Thread Andrew Morton
On Thu, 05 Dec 2013 15:12:04 +0800 Axel Lin wrote: > > > > blam. spin_unlock_irq(>tree_lock) failed to decrement > > preempt_count(). What the heck. > > > > What architecture is this? Please send the full .config. > > > > And exactly which kernel version is in use? > > It's a arm7tdmi SoC

Re: BUG: sleeping function called from invalid context at kernel/locking/mutex.c:616

2013-12-04 Thread Axel Lin
於 三,2013-12-04 於 13:32 -0800,Andrew Morton 提到: > On Wed, 04 Dec 2013 16:59:38 +0800 Axel Lin wrote: > > > > > > > Please add a lot more printk's so we can narrow it down further? I'd > > > use something like > > > > > > printk(%d: %d\n", __LINE__, preempt_count()); > > > > > > (note:

Re: BUG: sleeping function called from invalid context at kernel/locking/mutex.c:616

2013-12-04 Thread Andrew Morton
kernel memory: 92K (003a8000 - 003bf000) > 467: 0 > 470: 0 > 475: 1 > 485: 1 > 487: 2 > 489: 2 > 491: 1 > 494: 1 > 496: 1 > 498: 1 > 500: 0 > 502: 0 > 467: 0 > 470: 0 > 475: 1 > 485: 1 > 487: 2 > 489: 2 > 491: 1 > 494: 1 > 496: 1 &g

Re: BUG: sleeping function called from invalid context at kernel/locking/mutex.c:616

2013-12-04 Thread Andrew Morton
On Wed, 04 Dec 2013 16:13:31 +0800 Axel Lin wrote: > I can constantly hit this issue: > > I trace it to mm/filemap.c: add_to_page_cache_locked > I print the in_atomic status at BEGIN and END of add_to_page_cache_locked > call. > Then I got in_atomic is true at the end of

Re: BUG: sleeping function called from invalid context at kernel/locking/mutex.c:616

2013-12-04 Thread Axel Lin
d_to_page_cache_locked END in_atomic=1 BUG: sleeping function called from invalid context at kernel/locking/mutex.c:616 in_atomic(): 1, irqs_disabled(): 128, pid: 1, name: swapper 1 lock held by swapper/1: #0: (>cred_guard_mutex){..}, at: [<00073fac>] prepare_bprm_creds+0x30/0x6c

Re: BUG: sleeping function called from invalid context at kernel/locking/mutex.c:616

2013-12-04 Thread Axel Lin
. Testing on a nommu platform with 3.13.0-rc2 + patches for this SoC. VFS: Mounted root (jffs2 filesystem) on device 31:1. devtmpfs: mounted Freeing unused kernel memory: 92K (003a4000 - 003bb000) BUG: sleeping function called from invalid context at kernel/locking/mutex.c:616 in_atomic(): 1

Re: BUG: sleeping function called from invalid context at kernel/locking/mutex.c:616

2013-12-04 Thread Andrew Morton
On Wed, 04 Dec 2013 16:13:31 +0800 Axel Lin axel@ingics.com wrote: I can constantly hit this issue: I trace it to mm/filemap.c: add_to_page_cache_locked I print the in_atomic status at BEGIN and END of add_to_page_cache_locked call. Then I got in_atomic is true at the end of

Re: BUG: sleeping function called from invalid context at kernel/locking/mutex.c:616

2013-12-04 Thread Andrew Morton
is in use? Thanks. 502: 1 BUG: sleeping function called from invalid context at kernel/locking/mutex.c:616 in_atomic(): 1, irqs_disabled(): 128, pid: 1, name: swapper 1 lock held by swapper/1: -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message

Re: BUG: sleeping function called from invalid context at kernel/locking/mutex.c:616

2013-12-04 Thread Axel Lin
於 三,2013-12-04 於 13:32 -0800,Andrew Morton 提到: On Wed, 04 Dec 2013 16:59:38 +0800 Axel Lin axel@ingics.com wrote: Please add a lot more printk's so we can narrow it down further? I'd use something like printk(%d: %d\n, __LINE__, preempt_count()); (note:

Re: BUG: sleeping function called from invalid context at kernel/locking/mutex.c:616

2013-12-04 Thread Andrew Morton
On Thu, 05 Dec 2013 15:12:04 +0800 Axel Lin axel@ingics.com wrote: blam. spin_unlock_irq(mapping-tree_lock) failed to decrement preempt_count(). What the heck. What architecture is this? Please send the full .config. And exactly which kernel version is in use? It's a

BUG: sleeping function called from invalid context at kernel/locking/mutex.c:616

2013-12-01 Thread Axel Lin
Hi, I got below messages while booting. Testing on a nommu platform with 3.13.0-rc2 + patches for this SoC. VFS: Mounted root (jffs2 filesystem) on device 31:1. devtmpfs: mounted Freeing unused kernel memory: 92K (003a4000 - 003bb000) BUG: sleeping function called from invalid context at kernel

BUG: sleeping function called from invalid context at kernel/locking/mutex.c:616

2013-12-01 Thread Axel Lin
Hi, I got below messages while booting. Testing on a nommu platform with 3.13.0-rc2 + patches for this SoC. VFS: Mounted root (jffs2 filesystem) on device 31:1. devtmpfs: mounted Freeing unused kernel memory: 92K (003a4000 - 003bb000) BUG: sleeping function called from invalid context at kernel