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

Tigran Aivazian (tigran@sco.COM)
Fri, 10 Dec 1999 15:52:03 +0000 (GMT)


On Fri, 10 Dec 1999, Tigran Aivazian wrote:
> b) drop the spinlock and rediscover position in the vmlist after
> put_user() (i.e. assuming that we *may* have slept)

b) doesn't seem to be an option either because (unlike
filemap.c:truncate_inode_pages()) we don't remove anything from the list
ourselves so we will be looping there forever starting from the head each
time. Unless someone knows of an easy way to discover that we *have*
slept or not.

More specifically:

some code;
put_user();
some other code that needs to know if put_user() above slept or not;

How?

Regards,
Tigran.

-
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/