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).
This commit is contained in:
rmind 2009-07-13 02:49:08 +00:00
parent 7e069f82fb
commit f80b636295

View File

@ -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 @@ __KERNEL_RCSID(0, "$NetBSD: sys_pipe.c,v 1.115 2009/06/28 15:18:50 rmind Exp $")
* #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 *);