diff options
| author | hannken <hannken@NetBSD.org> | 2023-03-22 21:14:46 +0000 |
|---|---|---|
| committer | hannken <hannken@NetBSD.org> | 2023-03-22 21:14:46 +0000 |
| commit | 141185f67e84a9f8bcc9fa8a12ca6b96f4361a80 (patch) | |
| tree | f0a9fdac5f55bd6d7ffdeb5f8c47bd480f9d170c /sys/dev | |
| parent | 484ca534b46eb4fa6aba5ad886f651f509b76e25 (diff) | |
Pass B_PHYS when reading from device. Xbd(4) at least checks
this flag and may trigger an assertion.
Diffstat (limited to 'sys/dev')
| -rw-r--r-- | sys/dev/fss.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/fss.c b/sys/dev/fss.c index d3e77b6505b..2db93f5b996 100644 --- a/sys/dev/fss.c +++ b/sys/dev/fss.c @@ -1,4 +1,4 @@ -/* $NetBSD: fss.c,v 1.113 2022/09/24 23:18:54 thorpej Exp $ */ +/* $NetBSD: fss.c,v 1.114 2023/03/22 21:14:46 hannken 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.114 2023/03/22 21:14:46 hannken 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; |
