Module Name: src Committed By: rmind Date: Mon Jul 13 02:49:08 UTC 2009
Modified Files: src/sys/kern: sys_pipe.c Log Message: Re-enable direct I/O for pipe: - Larger writes (2 or more pages) will use emap. - Might help to catch rare hang (some very old bug). To generate a diff of this commit: cvs rdiff -u -r1.115 -r1.116 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.115 src/sys/kern/sys_pipe.c:1.116 --- src/sys/kern/sys_pipe.c:1.115 Sun Jun 28 15:18:50 2009 +++ src/sys/kern/sys_pipe.c Mon Jul 13 02:49:08 2009 @@ -1,4 +1,4 @@ -/* $NetBSD: sys_pipe.c,v 1.115 2009/06/28 15:18:50 rmind Exp $ */ +/* $NetBSD: sys_pipe.c,v 1.116 2009/07/13 02:49:08 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.115 2009/06/28 15:18:50 rmind Exp $"); +__KERNEL_RCSID(0, "$NetBSD: sys_pipe.c,v 1.116 2009/07/13 02:49:08 rmind Exp $"); #include <sys/param.h> #include <sys/systm.h> @@ -99,9 +99,6 @@ * #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 *);