Re: [BUG] TASK_DEAD task is able to be woken up in special condition
From: KOSAKI Motohiro
Date: Thu Jan 26 2012 - 16:24:46 EST
>> >> task->state = TASK_UNINTERRUPTIBLE;
>> >> schedule()
>
> I think you meant:
> __set_current_state(TASK_UNINTERRUPTIBLE);
> schedule();
>
> The way you wrote it, task doesn't have to be current, so could be doing
> the bad thing Peter pointed out, diddling *another* tasks ->state.
Silly me. Thank you for following up me.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/