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

Florian Delizy <[email protected]> Mon, 25 Sep 2006 17:34:17 +0200
Newsgroups gmane.linux.cluster.openmosix.devel
Message-ID <[email protected]>
Re-send on Matt's advise


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.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
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-09-22 18:08:31.000000000 +0200
+++ linux/hpc/migrecv.c	2006-09-25 16:27:40.000000000 +0200
@@ -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;