OR into bp->b_cflags; don't overwrite.
This commit is contained in:
parent
3b6112efc8
commit
01f564d8c8
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: kern_physio.c,v 1.97 2019/12/08 19:52:37 ad Exp $ */
|
||||
/* $NetBSD: kern_physio.c,v 1.98 2020/03/14 15:31:29 ad Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1982, 1986, 1990, 1993
|
||||
|
@ -71,7 +71,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_physio.c,v 1.97 2019/12/08 19:52:37 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: kern_physio.c,v 1.98 2020/03/14 15:31:29 ad Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -283,7 +283,7 @@ physio(void (*strategy)(struct buf *), struct buf *obp, dev_t dev, int flags,
|
|||
bp = obp;
|
||||
} else {
|
||||
bp = getiobuf(NULL, true);
|
||||
bp->b_cflags = BC_BUSY;
|
||||
bp->b_cflags |= BC_BUSY;
|
||||
}
|
||||
bp->b_dev = dev;
|
||||
bp->b_proc = p;
|
||||
|
@ -296,7 +296,7 @@ physio(void (*strategy)(struct buf *), struct buf *obp, dev_t dev, int flags,
|
|||
* raw transfers".
|
||||
*/
|
||||
bp->b_oflags = 0;
|
||||
bp->b_cflags = BC_BUSY;
|
||||
bp->b_cflags |= BC_BUSY;
|
||||
bp->b_flags = flags | B_PHYS | B_RAW;
|
||||
bp->b_iodone = physio_biodone;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vfs_wapbl.c,v 1.104 2020/03/08 18:26:59 ad Exp $ */
|
||||
/* $NetBSD: vfs_wapbl.c,v 1.105 2020/03/14 15:32:51 ad Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 2003, 2008, 2009 The NetBSD Foundation, Inc.
|
||||
|
@ -36,7 +36,7 @@
|
|||
#define WAPBL_INTERNAL
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: vfs_wapbl.c,v 1.104 2020/03/08 18:26:59 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: vfs_wapbl.c,v 1.105 2020/03/14 15:32:51 ad Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/bitops.h>
|
||||
|
@ -922,7 +922,7 @@ wapbl_doio(void *data, size_t len, struct vnode *devvp, daddr_t pbn, int flags)
|
|||
|
||||
bp = getiobuf(devvp, true);
|
||||
bp->b_flags = flags;
|
||||
bp->b_cflags = BC_BUSY; /* mandatory, asserted by biowait() */
|
||||
bp->b_cflags |= BC_BUSY; /* mandatory, asserted by biowait() */
|
||||
bp->b_dev = devvp->v_rdev;
|
||||
bp->b_data = data;
|
||||
bp->b_bufsize = bp->b_resid = bp->b_bcount = len;
|
||||
|
@ -997,7 +997,7 @@ wapbl_buffered_write_async(struct wapbl *wl, struct buf *bp)
|
|||
TAILQ_REMOVE(&wl->wl_iobufs, bp, b_wapbllist);
|
||||
|
||||
bp->b_flags |= B_WRITE;
|
||||
bp->b_cflags = BC_BUSY; /* mandatory, asserted by biowait() */
|
||||
bp->b_cflags |= BC_BUSY; /* mandatory, asserted by biowait() */
|
||||
bp->b_oflags = 0;
|
||||
bp->b_bcount = bp->b_resid;
|
||||
BIO_SETPRIO(bp, BPRIO_TIMECRITICAL);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: genfs_io.c,v 1.88 2020/02/27 22:12:54 ad Exp $ */
|
||||
/* $NetBSD: genfs_io.c,v 1.89 2020/03/14 15:34:24 ad Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1982, 1986, 1989, 1993
|
||||
|
@ -31,7 +31,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.88 2020/02/27 22:12:54 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: genfs_io.c,v 1.89 2020/03/14 15:34:24 ad Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -615,7 +615,7 @@ genfs_getpages_read(struct vnode *vp, struct vm_page **pgs, int npages,
|
|||
mbp->b_bufsize = totalbytes;
|
||||
mbp->b_data = (void *)kva;
|
||||
mbp->b_resid = mbp->b_bcount = bytes;
|
||||
mbp->b_cflags = BC_BUSY;
|
||||
mbp->b_cflags |= BC_BUSY;
|
||||
if (async) {
|
||||
mbp->b_flags = B_READ | B_ASYNC;
|
||||
mbp->b_iodone = uvm_aio_aiodone;
|
||||
|
@ -1497,7 +1497,7 @@ genfs_do_io(struct vnode *vp, off_t off, vaddr_t kva, size_t len, int flags,
|
|||
mbp->b_bufsize = len;
|
||||
mbp->b_data = (void *)kva;
|
||||
mbp->b_resid = mbp->b_bcount = bytes;
|
||||
mbp->b_cflags = BC_BUSY | BC_AGE;
|
||||
mbp->b_cflags |= BC_BUSY | BC_AGE;
|
||||
if (async) {
|
||||
mbp->b_flags = brw | B_ASYNC;
|
||||
mbp->b_iodone = iodone;
|
||||
|
@ -1735,7 +1735,7 @@ genfs_compat_gop_write(struct vnode *vp, struct vm_page **pgs, int npages,
|
|||
mutex_exit(vp->v_interlock);
|
||||
|
||||
bp = getiobuf(vp, true);
|
||||
bp->b_cflags = BC_BUSY | BC_AGE;
|
||||
bp->b_cflags |= BC_BUSY | BC_AGE;
|
||||
bp->b_lblkno = offset >> vp->v_mount->mnt_fs_bshift;
|
||||
bp->b_data = (char *)kva;
|
||||
bp->b_bcount = npages << PAGE_SHIFT;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: lfs_bio.c,v 1.146 2020/02/23 08:39:28 riastradh Exp $ */
|
||||
/* $NetBSD: lfs_bio.c,v 1.147 2020/03/14 15:35:35 ad Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999, 2000, 2001, 2002, 2003, 2008 The NetBSD Foundation, Inc.
|
||||
|
@ -60,7 +60,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: lfs_bio.c,v 1.146 2020/02/23 08:39:28 riastradh Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: lfs_bio.c,v 1.147 2020/03/14 15:35:35 ad Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -735,7 +735,7 @@ lfs_newbuf(struct lfs *fs, struct vnode *vp, daddr_t daddr, size_t size, int typ
|
|||
bp->b_error = 0;
|
||||
bp->b_resid = 0;
|
||||
bp->b_iodone = lfs_free_aiodone;
|
||||
bp->b_cflags = BC_BUSY | BC_NOCACHE;
|
||||
bp->b_cflags |= BC_BUSY | BC_NOCACHE;
|
||||
bp->b_private = fs;
|
||||
|
||||
mutex_enter(&bufcache_lock);
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: lfs_vfsops.c,v 1.374 2020/02/23 15:46:42 ad Exp $ */
|
||||
/* $NetBSD: lfs_vfsops.c,v 1.375 2020/03/14 15:35:35 ad Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (c) 1999, 2000, 2001, 2002, 2003, 2007, 2007
|
||||
|
@ -61,7 +61,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: lfs_vfsops.c,v 1.374 2020/02/23 15:46:42 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: lfs_vfsops.c,v 1.375 2020/03/14 15:35:35 ad Exp $");
|
||||
|
||||
#if defined(_KERNEL_OPT)
|
||||
#include "opt_lfs.h"
|
||||
|
@ -2127,7 +2127,7 @@ lfs_gop_write(struct vnode *vp, struct vm_page **pgs, int npages,
|
|||
mbp->b_bufsize = npages << PAGE_SHIFT;
|
||||
mbp->b_data = (void *)kva;
|
||||
mbp->b_resid = mbp->b_bcount = bytes;
|
||||
mbp->b_cflags = BC_BUSY|BC_AGE;
|
||||
mbp->b_cflags |= BC_BUSY|BC_AGE;
|
||||
mbp->b_iodone = uvm_aio_aiodone;
|
||||
|
||||
bp = NULL;
|
||||
|
|
Loading…
Reference in New Issue