From mboxrd@z Thu Jan 1 00:00:00 1970 From: erik quanstrom Date: Fri, 11 Jun 2010 10:49:09 -0400 To: 9fans@9fans.net Message-ID: In-Reply-To: References: <4C1242CD.5020202@bouyapop.org> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] 9vx, kproc and *double sleep* Topicbox-Message-UUID: 31576f1a-ead6-11e9-9d60-3106f5b1d025 > schedinit only runs once and sleep runs all the time. That's the part > I don't get. gotolabel in sleep sends you back to the setlabel at the top of schedinit. > But you might have found something, I sure wish I understood it all better :-) i'm not entirely convinced that the problem isn't the fact that splhi() doesn't do anything. here's what i wonder: - does richard miller's alternate implementation of wakeup solve this problem. - does changing spl* to manipulation of a per-cpu lock solve the problem? sometimes preventing anything else from running on your mach is exactly what you want. in any event, given the long history with sleep/wakeup, changes should be justified with a promula model. the current model omits the spl* and the second lock. (http://swtch.com/spin/sleep_wakeup.txt). - erik