OpenVZ Forum


Home » Mailing lists » Devel » [PATCH] pidspace coda fs
[PATCH] pidspace coda fs [message #17515] Thu, 22 February 2007 23:33
Sukadev Bhattiprolu is currently offline  Sukadev Bhattiprolu
Messages: 413
Registered: August 2006
Senior Member
From: Sukadev Bhattiprolu <sukadev@us.ibm.com>
Subject: [PATCH] pidspace coda fs

Use container-safe interfaces for pid and pgid in coda.

Signed-off-by: Sukadev Bhattiprolu <sukadev@us.ibm.com>
Cc: Cedric Le Goater <clg@fr.ibm.com>
Cc: Dave Hansen <haveblue@us.ibm.com>
Cc: Serge Hallyn <serue@us.ibm.com>
Cc: containers@lists.osdl.org

---
 fs/coda/upcall.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: lx26-20-mm1/fs/coda/upcall.c
===================================================================
--- lx26-20-mm1.orig/fs/coda/upcall.c	2007-02-16 15:44:56.000000000 -0800
+++ lx26-20-mm1/fs/coda/upcall.c	2007-02-16 15:45:25.000000000 -0800
@@ -52,8 +52,8 @@ static void *alloc_upcall(int opcode, in
 		return ERR_PTR(-ENOMEM);
 
         inp->ih.opcode = opcode;
-	inp->ih.pid = current->pid;
-	inp->ih.pgid = process_group(current);
+	inp->ih.pid = pid_nr(task_pid(current));
+	inp->ih.pgid = pid_nr(task_pgrp(current));
 #ifdef CONFIG_CODA_FS_OLD_API
 	memset(&inp->ih.cred, 0, sizeof(struct coda_cred));
 	inp->ih.cred.cr_fsuid = current->fsuid;
_______________________________________________
Containers mailing list
Containers@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
Previous Topic: [PATCH 4/4] Use task_pgrp() in autofs/autofs4
Next Topic: [PATCH] Use task_pgrp() in task exit
Goto Forum:
  


Current Time: Thu Aug 21 09:23:08 GMT 2025

Total time taken to generate the page: 0.05835 seconds