From: Davide Libenzi Date: Fri, 11 Apr 2008 04:29:19 +0000 (-0700) Subject: eventfd/kaio integration fix X-Git-Tag: v2.6.25-rc9~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8d1c98b0b5c0148b519c6416e689ef6a89ffcea3;p=pandora-kernel.git eventfd/kaio integration fix Jeff Roberson discovered a race when using kaio eventfd based notifications. When it occurs it can lead tomissed wakeups and hung userspace. This patch fixes the race by moving the notification inside the spinlocked section of kaio. The operation is safe since eventfd spinlock and kaio one are unrelated. Signed-off-by: Davide Libenzi Cc: Zach Brown Cc: Jeff Roberson Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed