[patch 18/56] openmosix/openmosix-remove-dead-code-homemig_01.patch

Florian Delizy <[email protected]> Thu, 02 Nov 2006 22:56:20 +0100
Newsgroups gmane.linux.cluster.openmosix.devel
Message-ID <[email protected]>
This patch removes an unreached else statement int mig_do_receive_home.
ack pkts are dealt with in kcomd so no need to deal with them here.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

_______________________________________________
openMosix-devel mailing list
openMosix-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
https://lists.sourceforge.net/lists/listinfo/openmosix-devel
openmosix-remove-dead-code-homemig_01.patch (text/x-patch, 997 B)
This patch removes an unreached else statement int mig_do_receive_home.
ack pkts are dealt with in kcomd so no need to deal with them here.
Index: linux/hpc/migrecv.c
===================================================================
--- linux.orig/hpc/migrecv.c	2006-11-02 22:51:58.000000000 +0100
+++ linux/hpc/migrecv.c	2006-11-02 22:52:00.000000000 +0100
@@ -113,25 +113,6 @@
 			return -1;
 		}
 
-
-	} else {
-
-		recv_tsk=kcom_task_find(recv_kcom_pkt->rpid);
-		if (!recv_tsk) {
-			printk(KERN_ERR "Unable to find remote pid %u\n", recv_kcom_pkt->rpid);
-			return -1;
-		}
-
-		/* spin_lock(&recv_tsk->spinlock);*/
-		list_add_tail(&recv_kcom_pkt->list, &recv_tsk->in_packs);
-		/* spin_unlock(&recv_tsk->spinlock);*/
-		sltsk=find_task_by_pid(recv_kcom_pkt->rpid); /* only remote node will receive MIG_GO_HOME ack*/
-		if (sltsk) {
-			wake_up_process(sltsk);
-		} else {
-			printk(KERN_ERR"Unable to wake up process %u\n", recv_kcom_pkt->rpid);
-			return -1;
-		}
 	}
 
 	return 0;