From 8a81693ad5d5f7ecf032ec7071e49625b8e3118d Mon Sep 17 00:00:00 2001 From: Bryan Drewery Date: Mon, 7 Mar 2016 21:10:19 +0000 Subject: [PATCH] Only call bwillwrite() for logging to vnodes, as other fo_write() calls do. MFC after: 1 week Sponsored by: EMC / Isilon Storage Division --- sys/dev/filemon/filemon_wrapper.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/filemon/filemon_wrapper.c b/sys/dev/filemon/filemon_wrapper.c index b55e791a302..6911dc57837 100644 --- a/sys/dev/filemon/filemon_wrapper.c +++ b/sys/dev/filemon/filemon_wrapper.c @@ -59,7 +59,8 @@ filemon_output(struct filemon *filemon, char *msg, size_t len) auio.uio_td = curthread; auio.uio_offset = (off_t) -1; - bwillwrite(); + if (filemon->fp->f_type == DTYPE_VNODE) + bwillwrite(); fo_write(filemon->fp, &auio, curthread->td_ucred, 0, curthread); }