Module Name:    src
Committed By:   rmind
Date:           Wed Jul 15 21:09:41 UTC 2009

Modified Files:
        src/sys/kern: sys_pipe.c

Log Message:
Revert previous: disable direct I/O on pipe, it cought a problem with emap.


To generate a diff of this commit:
cvs rdiff -u -r1.116 -r1.117 src/sys/kern/sys_pipe.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/kern/sys_pipe.c
diff -u src/sys/kern/sys_pipe.c:1.116 src/sys/kern/sys_pipe.c:1.117
--- src/sys/kern/sys_pipe.c:1.116	Mon Jul 13 02:49:08 2009
+++ src/sys/kern/sys_pipe.c	Wed Jul 15 21:09:41 2009
@@ -1,4 +1,4 @@
-/*	$NetBSD: sys_pipe.c,v 1.116 2009/07/13 02:49:08 rmind Exp $	*/
+/*	$NetBSD: sys_pipe.c,v 1.117 2009/07/15 21:09:41 rmind Exp $	*/
 
 /*-
  * Copyright (c) 2003, 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -68,7 +68,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sys_pipe.c,v 1.116 2009/07/13 02:49:08 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_pipe.c,v 1.117 2009/07/15 21:09:41 rmind Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -99,6 +99,9 @@
  * #define PIPE_NODIRECT
  */
 
+/* XXX Disabled for now; rare hangs switching between direct/buffered */
+#define PIPE_NODIRECT
+
 static int	pipe_read(file_t *, off_t *, struct uio *, kauth_cred_t, int);
 static int	pipe_write(file_t *, off_t *, struct uio *, kauth_cred_t, int);
 static int	pipe_close(file_t *);

Reply via email to