All of lore.kernel.org
 help / color / mirror / Atom feed
* might_sleep warning in both 41 and 41-mm1
@ 2002-10-08 15:42 Martin J. Bligh
  2002-10-08 17:22 ` Andrew Morton
  0 siblings, 1 reply; 3+ messages in thread
From: Martin J. Bligh @ 2002-10-08 15:42 UTC (permalink / raw)
  To: linux-kernel; +Cc: Andrew Morton

This one still happens in both 41 and 41-mm1. I'd mentioned
it before, and was told it was fixed in a later kernel, but
still seems to be there.

Debug: sleeping function called from illegal context at mm/page_alloc.c:512
Call Trace:
 [<c0115fb3>] __might_sleep+0x43/0x47
 [<c0134efc>] __alloc_pages+0x24/0x260
 [<c0112638>] pte_alloc_one+0x38/0xfc
 [<c01279cd>] pte_alloc_map+0x2d/0x1b0
 [<c012f6cc>] move_one_page+0x11c/0x2d8
 [<c012f794>] move_one_page+0x1e4/0x2d8
 [<c012f8b7>] move_page_tables+0x2f/0x74
 [<c012fe4d>] do_mremap+0x551/0x6dc
 [<c013002b>] sys_mremap+0x53/0x74
 [<c0106ff7>] syscall_call+0x7/0xb


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: might_sleep warning in both 41 and 41-mm1
  2002-10-08 15:42 might_sleep warning in both 41 and 41-mm1 Martin J. Bligh
@ 2002-10-08 17:22 ` Andrew Morton
  2002-10-08 17:38   ` Martin J. Bligh
  0 siblings, 1 reply; 3+ messages in thread
From: Andrew Morton @ 2002-10-08 17:22 UTC (permalink / raw)
  To: Martin J. Bligh; +Cc: linux-kernel

"Martin J. Bligh" wrote:
> 
> This one still happens in both 41 and 41-mm1. I'd mentioned
> it before, and was told it was fixed in a later kernel, but
> still seems to be there.
> 
> Debug: sleeping function called from illegal context at mm/page_alloc.c:512
> Call Trace:
>  [<c0115fb3>] __might_sleep+0x43/0x47
>  [<c0134efc>] __alloc_pages+0x24/0x260
>  [<c0112638>] pte_alloc_one+0x38/0xfc
>  [<c01279cd>] pte_alloc_map+0x2d/0x1b0
>  [<c012f6cc>] move_one_page+0x11c/0x2d8
>  [<c012f794>] move_one_page+0x1e4/0x2d8
>  [<c012f8b7>] move_page_tables+0x2f/0x74
>  [<c012fe4d>] do_mremap+0x551/0x6dc
>  [<c013002b>] sys_mremap+0x53/0x74
>  [<c0106ff7>] syscall_call+0x7/0xb
> 

Oh.  It seems that the pte mapping functions will run inc_preempt_count()
via kmap_atomic() even if CONFIG_HIGHPTE=n.  So the ifdef around
page_table_present() needs to be CONFIG_HIGHMEM.  Or we don't use
kmap_atomic() at all in the pte mapping functions.

Please tell me that you had CONFIG_HIGHPTE=n?

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: might_sleep warning in both 41 and 41-mm1
  2002-10-08 17:22 ` Andrew Morton
@ 2002-10-08 17:38   ` Martin J. Bligh
  0 siblings, 0 replies; 3+ messages in thread
From: Martin J. Bligh @ 2002-10-08 17:38 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-kernel

> Oh.  It seems that the pte mapping functions will run inc_preempt_count()
> via kmap_atomic() even if CONFIG_HIGHPTE=n.  So the ifdef around
> page_table_present() needs to be CONFIG_HIGHMEM.  Or we don't use
> kmap_atomic() at all in the pte mapping functions.
> 
> Please tell me that you had CONFIG_HIGHPTE=n?

Yes. Highpte was off.

Thanks ;-)

M.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-10-08 17:36 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-08 15:42 might_sleep warning in both 41 and 41-mm1 Martin J. Bligh
2002-10-08 17:22 ` Andrew Morton
2002-10-08 17:38   ` Martin J. Bligh

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.