]> git.baikalelectronics.ru Git - kernel.git/commit
[POWERPC] spufs: Fix lost events in poll/epoll on mfc
authorKazunori Asayama <asayama@sm.sony.co.jp>
Fri, 29 Jun 2007 00:58:08 +0000 (10:58 +1000)
committerPaul Mackerras <paulus@samba.org>
Tue, 3 Jul 2007 05:24:46 +0000 (15:24 +1000)
commitf9635243ca5d4b5f3850d4bcbf7a5a32b5729978
tree9f96bc933290724a26b0feeed18f7a07a141cc00
parentc81dd676850359c11820625828dfad769b683bf3
[POWERPC] spufs: Fix lost events in poll/epoll on mfc

When waiting for I/O events on mfc in an SPU context by using
poll/epoll syscalls, some of the events can be lost because of wrong
order of poll_wait and MFC status checks in the spufs_mfc_poll
function and non-atomic update of tagwait.  This fixes the
problem.

Signed-off-by: Kazunori Asayama <asayama@sm.sony.co.jp>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/cell/spufs/file.c