svn commit: r201067 - in stable/8/sys: dev/ips kern

Matt Jacob mjacob at FreeBSD.org
Sun Dec 27 22:49:34 UTC 2009


Author: mjacob
Date: Sun Dec 27 22:49:34 2009
New Revision: 201067
URL: http://svn.freebsd.org/changeset/base/201067

Log:
  MFC 200620,200621: fix argument order to mtx_init call.

Modified:
  stable/8/sys/dev/ips/ips_pci.c
  stable/8/sys/kern/uipc_syscalls.c

Modified: stable/8/sys/dev/ips/ips_pci.c
==============================================================================
--- stable/8/sys/dev/ips/ips_pci.c	Sun Dec 27 22:42:47 2009	(r201066)
+++ stable/8/sys/dev/ips/ips_pci.c	Sun Dec 27 22:49:34 2009	(r201067)
@@ -154,7 +154,7 @@ static int ips_pci_attach(device_t dev)
         }
 	sc->ips_ich.ich_func = ips_intrhook;
 	sc->ips_ich.ich_arg = sc;
-	mtx_init(&sc->queue_mtx, "IPS bioqueue lock", MTX_DEF, 0);
+	mtx_init(&sc->queue_mtx, "IPS bioqueue lock", NULL, MTX_DEF);
 	sema_init(&sc->cmd_sema, 0, "IPS Command Semaphore");
 	bioq_init(&sc->queue);
 	if (config_intrhook_establish(&sc->ips_ich) != 0) {

Modified: stable/8/sys/kern/uipc_syscalls.c
==============================================================================
--- stable/8/sys/kern/uipc_syscalls.c	Sun Dec 27 22:42:47 2009	(r201066)
+++ stable/8/sys/kern/uipc_syscalls.c	Sun Dec 27 22:49:34 2009	(r201067)
@@ -1886,7 +1886,7 @@ kern_sendfile(struct thread *td, struct 
 	if (uap->flags & SF_SYNC) {
 		sfs = malloc(sizeof *sfs, M_TEMP, M_WAITOK);
 		memset(sfs, 0, sizeof *sfs);
-		mtx_init(&sfs->mtx, "sendfile", MTX_DEF, 0);
+		mtx_init(&sfs->mtx, "sendfile", NULL, MTX_DEF);
 		cv_init(&sfs->cv, "sendfile");
 	}
 


More information about the svn-src-stable mailing list