Re: [git pull] scheduler fixes

From: Ingo Molnar
Date: Sun May 11 2008 - 09:45:55 EST



* Matthew Wilcox <matthew@xxxxxx> wrote:

> IOW, what I think you're checking for is:
>
> task A task B
> if sem->count >0
> break;
> sem->count++
> wake_up_process(B)
> if (state == TASK_INTERRUPTIBLE && signal_pending(task))
> break;
>
> which can't happen because of sem->lock.

ok, agreed, that race cannot happen.

Ingo
--
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/