Re: Use proper TAILQ functions for slpque

2018-10-15 Thread Mark Kettenis
> From: Christian Ludwig > Date: Tue, 16 Oct 2018 08:31:14 +0200 > > Do not roll a custom for-loop, use the appropriate TAILQ function. > > Also use unsleep() instead of coding the same functionality here again. > There is only one place in the system that resets p_wchan now. And the > unsleep-p

Re: Use proper TAILQ functions for slpque

2018-10-15 Thread Claudio Jeker
On Tue, Oct 16, 2018 at 08:31:14AM +0200, Christian Ludwig wrote: > Do not roll a custom for-loop, use the appropriate TAILQ function. > > Also use unsleep() instead of coding the same functionality here again. > There is only one place in the system that resets p_wchan now. And the > unsleep-part

Use proper TAILQ functions for slpque

2018-10-15 Thread Christian Ludwig
Do not roll a custom for-loop, use the appropriate TAILQ function. Also use unsleep() instead of coding the same functionality here again. There is only one place in the system that resets p_wchan now. And the unsleep-part has the same pattern like in endtsleep(). --- sys/kern/kern_synch.c | 12 +