wakeup() race condition. (theory)

Brian Chapman chapman at sco.COM
Thu Dec 1 16:18:06 AEST 1988


In article <455 at mrecvax.UUCP> tron at mrecvax.UUCP (Carlos Mendioroz) writes:
< 
< Sleep & wakeup both call spl6() to ensure secure access to
< the process queues, (Well, this is not theory, the calls are
< there...) and it is possible for the driver's device to 
< interrupt as a wakeup() is running, isn't it ?
< 
< As this driver (as SCO xenix serial driver) is running with
< prio 7, it's not blocked by spl6() and then it may interfere
< with the running wakeup by, say, runnig another wakeup.
< 
< Solution: (?)
< Not to call any wakeup at prio 7, that is, put every driver
< interrupt routine that calls wakeup at prio 6 or below.

BTW just in case anyone is wondering, SCO's serial driver
does *NOT* call wakeup from it's level 7 interrupt routine.
-- 
	Pay no attention to the man behind the curtain.
Brian Chapman		uunet!sco!chapman	SCO UNIX 3.2 Development



More information about the Comp.unix.wizards mailing list