Re: to make vmalloc()/vfree() one needs to...

Manfred Spraul (manfreds@colorfullife.com)
Fri, 10 Dec 1999 17:36:47 +0100


Tigran Aivazian wrote:
> b) drop the spinlock and rediscover position in the vmlist after
> put_user() (i.e. assuming that we *may* have slept)
>
> Looks like kmap() can only map a (single) page so it is not good enough
> for vread(). Is this true?
>
vread() is only called from drivers/char/mem.c, ie it's not time
critical.

I would either _always_ loop, or use a short (eg 64) byte temporary
buffer on the stack.

--
	Manfred

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/