[Cbe-oss-dev] [PATCH 1/3] spufs: allow coredumps to include nosched context

Christoph Hellwig hch at lst.de
Mon Jun 4 20:09:26 EST 2007


We only need to prevent coredumps of isolated contexts, no need to
exclude purely nosched contexts.


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

Index: linux-cell/arch/powerpc/platforms/cell/spufs/coredump.c
===================================================================
--- linux-cell.orig/arch/powerpc/platforms/cell/spufs/coredump.c	2007-06-04 10:08:04.000000000 +0200
+++ linux-cell/arch/powerpc/platforms/cell/spufs/coredump.c	2007-06-04 10:08:30.000000000 +0200
@@ -116,7 +116,7 @@ static int spufs_add_one_context(struct 
 	int size;
 
 	ctx = SPUFS_I(file->f_dentry->d_inode)->i_ctx;
-	if (ctx->flags & SPU_CREATE_NOSCHED)
+	if (ctx->flags & SPU_CREATE_ISOLATE)
 		return 0;
 
 	ctx_info = kzalloc(sizeof(*ctx_info), GFP_KERNEL);



More information about the cbe-oss-dev mailing list