Module Name: src
Committed By: rmind
Date: Mon Aug 31 20:48:14 UTC 2009
Modified Files:
src/sys/kern: sys_pipe.c
Log Message:
Turn off pipe's direct I/O again, it corrupts the data (although build and
various activity survived while testing this). Corruptions also happen on
sparc64 where emap is not in effect, therefore bugs are in direct I/O code.
To generate a diff of this commit:
cvs rdiff -u -r1.118 -r1.119 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.118 src/sys/kern/sys_pipe.c:1.119
--- src/sys/kern/sys_pipe.c:1.118 Sat Aug 29 00:06:43 2009
+++ src/sys/kern/sys_pipe.c Mon Aug 31 20:48:14 2009
@@ -1,4 +1,4 @@
-/* $NetBSD: sys_pipe.c,v 1.118 2009/08/29 00:06:43 rmind Exp $ */
+/* $NetBSD: sys_pipe.c,v 1.119 2009/08/31 20:48:14 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.118 2009/08/29 00:06:43 rmind Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sys_pipe.c,v 1.119 2009/08/31 20:48:14 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 *);