]> git.baikalelectronics.ru Git - kernel.git/commit
eventfd use waitqueue lock ...
authorDavide Libenzi <davidel@xmailserver.org>
Fri, 18 May 2007 19:02:33 +0000 (12:02 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 18 May 2007 20:09:34 +0000 (13:09 -0700)
commitbef685cce5834dc0a10fe17cc1332d0cd86b0a9a
treeb4e398ec71e0775a441329b60cb0771c43e92c54
parent9e03e7a78d734d41f68f949b51ca3bfb89bf9935
eventfd use waitqueue lock ...

The eventfd was using the unlocked waitqueue operations, but it was
using a different lock, so poll_wait() would race with it.

This makes eventfd directly use the waitqueue lock.

Signed-off-by: Davide Libenzi <davidel@xmailserver.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/eventfd.c