PERFORCE change 129837 for review

Kip Macy kmacy at FreeBSD.org
Fri Nov 30 11:37:11 PST 2007


http://perforce.freebsd.org/chv.cgi?CH=129837

Change 129837 by kmacy at kmacy:storage:toestack on 2007/11/30 19:36:14

	the tcpcb may already have gone away at this point make sure
	we're unhooked earlier on

Affected files ...

.. //depot/projects/toestack/sys/dev/cxgb/ulp/tom/cxgb_tom.c#14 edit

Differences ...

==== //depot/projects/toestack/sys/dev/cxgb/ulp/tom/cxgb_tom.c#14 (text+ko) ====

@@ -163,20 +163,9 @@
 void
 toepcb_release(struct toepcb *toep)
 {
-	struct tcpcb *tp;
-	
-	    
 	if (toep->tp_refcount == 1) {
-		/*
-		 * XXX clear our reference on the inpcb
-		 */
-		cxgb_remove_tid(TOM_DATA(toep->tp_toedev)->cdev, NULL, toep->tp_tid);
-		if ((tp = toep->tp_tp) != NULL) {
-			INP_LOCK(tp->t_inpcb);
-			tp->t_flags &= ~TF_TOE;
-			tp->t_toe = NULL;
-			INP_UNLOCK(tp->t_inpcb);
-		}
+		printf("doing final toepcb free\n");
+		
 		free(toep, M_DEVBUF);
 		return;
 	}


More information about the p4-projects mailing list