lkml.org 
[lkml]   [2014]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: zram: zsmalloc calls sleeping function from atomic context
On Mon, Mar 17, 2014 at 04:01:17PM -0700, Andrew Morton wrote:
> btw, I note that vunmap() itself already has a might_sleep() in it, and
> I can't work out why - I don't think it _does_ sleep. The changelog to
> 34754b69a6f87aa6aa is, in toto:
>
> "x86: make vmap yell louder when it is used under irqs_disabled()"
>
> No explanation *why*. And why didn't it use WARN_ON(irqs_disabled())?

Man I suck.. and 5 years ago too. I can barely remember last week.

Lets see if the email archive has clues.

vmap()
get_vm_area_caller()
__get_vm_area_node(.gfp = GFP_KERNEL)
kmalloc_node(gfp);


It does sleep.

https://lkml.org/lkml/2009/2/13/115


\
 
 \ /
  Last update: 2014-03-18 14:41    [W:0.063 / U:0.184 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site