Module Name:    src
Committed By:   mlelstv
Date:           Wed Aug  9 16:09:16 UTC 2017

Modified Files:
        src/sys/dev/i2o: ld_iop.c

Log Message:
Don't wait for allocation in polling mode.


To generate a diff of this commit:
cvs rdiff -u -r1.37 -r1.38 src/sys/dev/i2o/ld_iop.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/i2o/ld_iop.c
diff -u src/sys/dev/i2o/ld_iop.c:1.37 src/sys/dev/i2o/ld_iop.c:1.38
--- src/sys/dev/i2o/ld_iop.c:1.37	Mon Feb 27 21:32:33 2017
+++ src/sys/dev/i2o/ld_iop.c	Wed Aug  9 16:09:16 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: ld_iop.c,v 1.37 2017/02/27 21:32:33 jdolecek Exp $	*/
+/*	$NetBSD: ld_iop.c,v 1.38 2017/08/09 16:09:16 mlelstv Exp $	*/
 
 /*-
  * Copyright (c) 2000, 2001 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ld_iop.c,v 1.37 2017/02/27 21:32:33 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ld_iop.c,v 1.38 2017/08/09 16:09:16 mlelstv Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -448,7 +448,7 @@ ld_iop_flush(struct ld_softc *ld, bool p
 
 	sc = device_private(ld->sc_dv);
 	iop = device_private(device_parent(ld->sc_dv));
-	im = iop_msg_alloc(iop, IM_WAIT);
+	im = iop_msg_alloc(iop, poll ? IM_POLL : IM_WAIT);
 
 	mf.msgflags = I2O_MSGFLAGS(i2o_rbs_cache_flush);
 	mf.msgfunc = I2O_MSGFUNC(sc->sc_ii.ii_tid, I2O_RBS_CACHE_FLUSH);

Reply via email to