[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20080511134524.GA1045@elte.hu>
Date: Sun, 11 May 2008 15:45:24 +0200
From: Ingo Molnar <mingo@...e.hu>
To: Matthew Wilcox <matthew@....cx>
Cc: Sven Wegener <sven.wegener@...aler.net>,
Linus Torvalds <torvalds@...ux-foundation.org>,
"Zhang, Yanmin" <yanmin_zhang@...ux.intel.com>,
Andi Kleen <andi@...stfloor.org>,
LKML <linux-kernel@...r.kernel.org>,
Alexander Viro <viro@....linux.org.uk>,
Andrew Morton <akpm@...ux-foundation.org>,
Thomas Gleixner <tglx@...utronix.de>,
"H. Peter Anvin" <hpa@...or.com>
Subject: Re: [git pull] scheduler fixes
* Matthew Wilcox <matthew@....cx> 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@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists