Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Sep 2006 05:17:50 GMT
From:      Matt Jacob <mjacob@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 105765 for review
Message-ID:  <200609070517.k875Hoja052273@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=105765

Change 105765 by mjacob@newisp on 2006/09/07 05:17:17

	IFC

Affected files ...

.. //depot/projects/newisp/dev/mfi/mfi.c#2 integrate

Differences ...

==== //depot/projects/newisp/dev/mfi/mfi.c#2 (text) ====

@@ -25,7 +25,7 @@
  */
 
 #include <sys/cdefs.h>
-__FBSDID("$FreeBSD: src/sys/dev/mfi/mfi.c,v 1.13 2006/06/30 18:59:08 ambrisko Exp $");
+__FBSDID("$FreeBSD: src/sys/dev/mfi/mfi.c,v 1.14 2006/09/07 05:05:41 scottl Exp $");
 
 #include "opt_mfi.h"
 
@@ -779,17 +779,10 @@
 	mtx_lock(&sc->mfi_io_lock);
 	while (ci != pi) {
 		context = sc->mfi_comms->hw_reply_q[ci];
-		sc->mfi_comms->hw_reply_q[ci] = 0xffffffff;
-		if (context == 0xffffffff) {
-			device_printf(sc->mfi_dev, "mfi_intr: invalid context "
-			    "pi= %d ci= %d\n", pi, ci);
-		} else {
-			cm = &sc->mfi_commands[context];
-			mfi_remove_busy(cm);
-			mfi_complete(sc, cm);
-		}
-		ci++;
-		if (ci == (sc->mfi_max_fw_cmds + 1)) {
+		cm = &sc->mfi_commands[context];
+		mfi_remove_busy(cm);
+		mfi_complete(sc, cm);
+		if (++ci == (sc->mfi_max_fw_cmds + 1)) {
 			ci = 0;
 		}
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609070517.k875Hoja052273>