patch-2.3.1 linux/kernel/fork.c

Next file: linux/kernel/ksyms.c
Previous file: linux/kernel/exit.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.0/linux/kernel/fork.c linux/kernel/fork.c
@@ -303,7 +303,7 @@
 		atomic_set(&mm->count, 1);
 		mm->map_count = 0;
 		mm->def_flags = 0;
-		mm->mmap_sem = MUTEX_LOCKED;
+		init_MUTEX_LOCKED(&mm->mmap_sem);
 		/*
 		 * Leave mm->pgd set to the parent's pgd
 		 * so that pgd_offset() is always valid.
@@ -536,7 +536,7 @@
 	int nr;
 	int retval = -ENOMEM;
 	struct task_struct *p;
-	struct semaphore sem = MUTEX_LOCKED;
+	DECLARE_MUTEX_LOCKED(sem);
 
 	current->vfork_sem = &sem;
 
@@ -589,7 +589,7 @@
 
 	p->p_pptr = p->p_opptr = current;
 	p->p_cptr = NULL;
-	init_waitqueue(&p->wait_chldexit);
+	init_waitqueue_head(&p->wait_chldexit);
 	p->vfork_sem = NULL;
 
 	p->sigpending = 0;

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)