Subject: Re: sleeping on a userland address
To: Emmanuel Dreyfus <email@example.com>
From: Andrey Petrov <firstname.lastname@example.org>
Date: 05/22/2002 13:25:43
On Wed, May 22, 2002 at 09:28:37PM +0200, Emmanuel Dreyfus wrote:
> Is it safe to sleep on a userland address? It seems safe to me, but I'd
> like to have a confirmation.
It's just wchan id, so anything is safe in this sense.
Kernel address provides uniqness of wchan so you'll wake only those who
actually waited for that particular event, userland address doesn't give
you that so occidently you'll awake someone else, well usually awaken
process recheck the lock and goes back to sleep, but anyway. My .002.