lwbuf allocation question?

Samuel J. Greear sjg at evilcode.net
Sun Apr 4 08:10:47 PDT 2010


What version are you looking at?

http://gitweb.dragonflybsd.org/dragonfly.git/blob/HEAD:/sys/cpu/i386/misc/lwbuf.c

Latest doesn't sleep at all, it relies entirely on objcache, which may
sleep internally since objcache_get is being called with M_WAITOK.

Sam


On Sun, Apr 4, 2010 at 8:28 AM, Venkatesh Srinivas
<me at endeavour.zapto.org> wrote:
> Hi,
> Is there any reason that the lwbuf allocation code is back to tsleep(... ,
> hz) if it can't get an lwbuf from the objcache? Perhaps the tsleep should be
> without a timeout and lwbuf_free should wakeup a waiter, as it did in past
> revisions?
> Thanks,
> -- vs
>





More information about the Kernel mailing list