Re: [PATCH 01/13] AppArmor: misc. base functions and defines

From: Changli Gao
Date: Fri Jul 30 2010 - 10:24:32 EST


On Fri, Jul 30, 2010 at 6:53 PM, Pekka Enberg <penberg@xxxxxxxxxxxxxx> wrote:
> On Fri, Jul 30, 2010 at 1:01 PM, John Johansen
>>
>> vfree can sleep, and skipping the schedule_work parts won't work for
>> apparmor as many of these allocations are being freed via rcu callbacks
>> as most of our object life cycles are dependent on cred refcounting.
>
> Can someone point me to where vfree() actually sleeps? I'm unable to
> find the exact spot.
>

http://lxr.linux.no/linux+v2.6.34.1/mm/vmalloc.c#L1405 . vfree ->
__vunmap, vunmap -> __vunmap, and there is a might_sleep() function in
vunmap.

BTW: I'll respin the kvmalloc patch later.

Thanks.

--
Regards,
Changli Gao(xiaosuo@xxxxxxxxx)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/