[Cbe-oss-dev] [PATCH 2/2] spufs: make state_mutex interruptible

Arnd Bergmann arnd at arndb.de
Thu Nov 29 00:50:00 EST 2007


On Tuesday 27 November 2007, Christoph Hellwig wrote:
> Make most places that use spu_acquire/spu_acquire_saved interruptible,
> this allows getting out of the spufs code when e.g. pressing ctrl+c.

Cool stuff. On a related note, do we still want to keep the spu_acquire()/
spu_release() naming? It may be clearer to use mutex_lock_interruptible()
and a manual spu_deactivate() instead. The reason for which we originally
introduced separate functions has long disappeared, except for
spu_acquire_runnable, and we're about to get rid of that as well.

> Signed-off-by: Christoph Hellwig <hch at lst.de>

Acked-by: Arnd Bergmann <arnd.bergmann at de.ibm.com>



More information about the cbe-oss-dev mailing list