Module Name: src Committed By: jdolecek Date: Thu Apr 23 09:40:08 UTC 2020
Modified Files: src/sys/dev: vnd.c Log Message: pass b_flags B_PHYS and B_RAW when setting up the buf for underlying device should fix misfired KASSERT() in xbd(4) To generate a diff of this commit: cvs rdiff -u -r1.276 -r1.277 src/sys/dev/vnd.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/dev/vnd.c diff -u src/sys/dev/vnd.c:1.276 src/sys/dev/vnd.c:1.277 --- src/sys/dev/vnd.c:1.276 Mon Apr 13 08:05:02 2020 +++ src/sys/dev/vnd.c Thu Apr 23 09:40:08 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: vnd.c,v 1.276 2020/04/13 08:05:02 maxv Exp $ */ +/* $NetBSD: vnd.c,v 1.277 2020/04/23 09:40:08 jdolecek Exp $ */ /*- * Copyright (c) 1996, 1997, 1998, 2008, 2020 The NetBSD Foundation, Inc. @@ -91,7 +91,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.276 2020/04/13 08:05:02 maxv Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vnd.c,v 1.277 2020/04/23 09:40:08 jdolecek Exp $"); #if defined(_KERNEL_OPT) #include "opt_vnd.h" @@ -724,7 +724,7 @@ vndthread(void *arg) bp = &vnx->vx_buf; buf_init(bp); - bp->b_flags = (obp->b_flags & B_READ); + bp->b_flags = (obp->b_flags & (B_READ | B_PHYS | B_RAW)); bp->b_oflags = obp->b_oflags; bp->b_cflags = obp->b_cflags; bp->b_iodone = vndiodone;