PERFORCE change 141327 for review

Andre Oppermann andre at FreeBSD.org
Thu May 8 15:56:11 UTC 2008


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

Change 141327 by andre at andre_flirtbox on 2008/05/08 15:55:14

	Apply locking changes to new function.

Affected files ...

.. //depot/projects/tcp_reass/netinet/tcp_timer.c#4 edit

Differences ...

==== //depot/projects/tcp_reass/netinet/tcp_timer.c#4 (text+ko) ====

@@ -585,11 +585,11 @@
 		INP_INFO_RUNLOCK(&tcbinfo);
 		return;
 	}
-	INP_LOCK(inp);
+	INP_WLOCK(inp);
 	INP_INFO_RUNLOCK(&tcbinfo);
 	if ((inp->inp_vflag & INP_DROPPED) || callout_pending(&tp->t_timers->tt_reass)
 	    || !callout_active(&tp->t_timers->tt_reass)) {
-		INP_UNLOCK(inp);
+		INP_WUNLOCK(inp);
 		return;
 	}
 	callout_deactivate(&tp->t_timers->tt_reass);
@@ -598,7 +598,7 @@
 	tcp_reass_qfree(tp);
 	tp->t_flags |= TF_ACKNOW;
 	(void) tcp_output(tp);
-	INP_UNLOCK(inp);
+	INP_WUNLOCK(inp);
 }
 
 void


More information about the p4-projects mailing list