process: flag a tiny race
authorAlan Cox <alan@linux.intel.com>
Thu, 18 Dec 2014 00:51:12 +0000 (00:51 +0000)
committerAlan Cox <alan@linux.intel.com>
Thu, 18 Dec 2014 00:51:12 +0000 (00:51 +0000)
I think we can just remove the restore, but needs checking over

Kernel/process.c

index 647a28b..cdebd25 100644 (file)
@@ -40,6 +40,8 @@ void psleep(void *event)
        udata.u_ptab->p_waitno = ++waitno;
        nready--;
 
+       /* FIXME: we don't want to restore interrupts here, but what
+          is the consequence */
        irqrestore(irq);
        switchout();            /* Switch us out, and start another process */
        /* Switchout doesn't return in this context until we have been switched back in, of course. */