Module Name:    src
Committed By:   jdolecek
Date:           Mon Apr 27 07:51:03 UTC 2020

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

Log Message:
pass B_PHYS|B_RAW also in nestio_setup(), courtesy to e.g. xbd(4), which
wants to know whether the buf came from user space or bio subsystem


To generate a diff of this commit:
cvs rdiff -u -r1.294 -r1.295 src/sys/kern/vfs_bio.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/vfs_bio.c
diff -u src/sys/kern/vfs_bio.c:1.294 src/sys/kern/vfs_bio.c:1.295
--- src/sys/kern/vfs_bio.c:1.294	Mon Apr 20 21:39:05 2020
+++ src/sys/kern/vfs_bio.c	Mon Apr 27 07:51:02 2020
@@ -1,4 +1,4 @@
-/*	$NetBSD: vfs_bio.c,v 1.294 2020/04/20 21:39:05 ad Exp $	*/
+/*	$NetBSD: vfs_bio.c,v 1.295 2020/04/27 07:51:02 jdolecek Exp $	*/
 
 /*-
  * Copyright (c) 2007, 2008, 2009, 2019, 2020 The NetBSD Foundation, Inc.
@@ -123,7 +123,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.294 2020/04/20 21:39:05 ad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_bio.c,v 1.295 2020/04/27 07:51:02 jdolecek Exp $");
 
 #ifdef _KERNEL_OPT
 #include "opt_bufcache.h"
@@ -2026,7 +2026,7 @@ nestiobuf_iodone(buf_t *bp)
 void
 nestiobuf_setup(buf_t *mbp, buf_t *bp, int offset, size_t size)
 {
-	const int b_pass = mbp->b_flags & (B_READ|B_MEDIA_FLAGS);
+	const int b_pass = mbp->b_flags & (B_READ|B_PHYS|B_RAW|B_MEDIA_FLAGS);
 	struct vnode *vp = mbp->b_vp;
 
 	KASSERT(mbp->b_bcount >= offset + size);

Reply via email to