Files
linux/arch
Jeremy Kerr d58831375d [POWERPC] spufs: fix context destruction during psmap fault
We have a small window where a spu context may be destroyed while
we're servicing a page fault (from another thread) to the context's
problem state mapping.

After we up_read() the mmap_sem, it's possible that the context is
destroyed by its owning thread, and so the later references to ctx
are invalid. This can maifest as a deadlock on the (now free()-ed)
context state mutex.

This change adds a reference to the context before we release the
mmap_sem, so that the context cannot be destroyed.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
2008-02-27 18:47:53 +11:00
..
2008-02-14 21:13:33 -08:00
2008-02-09 10:46:40 +01:00
2008-02-13 13:29:25 -08:00
2008-02-09 10:46:40 +01:00
2008-02-11 13:23:46 -08:00
2008-02-09 10:46:40 +01:00
2008-02-09 10:46:40 +01:00
2008-02-14 20:58:05 -08:00
2008-02-14 21:13:33 -08:00
2008-02-14 21:13:33 -08:00
2008-02-09 10:46:40 +01:00
2008-02-09 18:24:41 +01:00
2008-02-14 14:45:08 +09:00
2008-02-13 13:29:25 -08:00
2008-02-14 21:13:33 -08:00
2008-02-09 10:46:40 +01:00
2008-02-09 10:46:40 +01:00