Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-10]: src/sys/dev Pull up following revision(s) (requested by hann...



details:   https://anonhg.NetBSD.org/src/rev/95d4cca5292b
branches:  netbsd-10
changeset: 373983:95d4cca5292b
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Mar 23 12:11:03 2023 +0000

description:
Pull up following revision(s) (requested by hannken in ticket #126):

        sys/dev/fss.c: revision 1.114

Pass B_PHYS when reading from device.  Xbd(4) at least checks
this flag and may trigger an assertion.

diffstat:

 sys/dev/fss.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r e0d74d7979b0 -r 95d4cca5292b sys/dev/fss.c
--- a/sys/dev/fss.c     Thu Mar 23 12:03:04 2023 +0000
+++ b/sys/dev/fss.c     Thu Mar 23 12:11:03 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fss.c,v 1.113 2022/09/24 23:18:54 thorpej Exp $        */
+/*     $NetBSD: fss.c,v 1.113.4.1 2023/03/23 12:11:03 martin Exp $     */
 
 /*-
  * Copyright (c) 2003 The NetBSD Foundation, Inc.
@@ -36,7 +36,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: fss.c,v 1.113 2022/09/24 23:18:54 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: fss.c,v 1.113.4.1 2023/03/23 12:11:03 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -1285,7 +1285,7 @@ fss_bs_thread(void *arg)
 
                        /* Not on backing store, read from device. */
                        nbp = getiobuf(NULL, true);
-                       nbp->b_flags = B_READ;
+                       nbp->b_flags = B_READ | (bp->b_flags & B_PHYS);
                        nbp->b_resid = nbp->b_bcount = bp->b_bcount;
                        nbp->b_bufsize = bp->b_bcount;
                        nbp->b_data = bp->b_data;



Home | Main Index | Thread Index | Old Index