Sat Mar 21 15:24:06 2020 UTC ()
Pull up following revision(s) (requested by riastradh in ticket #789):

	sys/miscfs/deadfs/dead_vnops.c: revision 1.62

Use vn_bwrite, not genfs_nullop, for VOP_BWRITE.
VOP_BWRITE is responsible for calling biodone; can't just leave it
hanging.

XXX pullup


(martin)
diff -r1.61 -r1.61.16.1 src/sys/miscfs/deadfs/dead_vnops.c

cvs diff -r1.61 -r1.61.16.1 src/sys/miscfs/deadfs/dead_vnops.c (expand / switch to unified diff)

--- src/sys/miscfs/deadfs/dead_vnops.c 2017/04/26 03:02:49 1.61
+++ src/sys/miscfs/deadfs/dead_vnops.c 2020/03/21 15:24:06 1.61.16.1
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1/* $NetBSD: dead_vnops.c,v 1.61 2017/04/26 03:02:49 riastradh Exp $ */ 1/* $NetBSD: dead_vnops.c,v 1.61.16.1 2020/03/21 15:24:06 martin Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1989, 1993 4 * Copyright (c) 1989, 1993
5 * The Regents of the University of California. All rights reserved. 5 * The Regents of the University of California. All rights reserved.
6 * 6 *
7 * Redistribution and use in source and binary forms, with or without 7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions 8 * modification, are permitted provided that the following conditions
9 * are met: 9 * are met:
10 * 1. Redistributions of source code must retain the above copyright 10 * 1. Redistributions of source code must retain the above copyright
11 * notice, this list of conditions and the following disclaimer. 11 * notice, this list of conditions and the following disclaimer.
12 * 2. Redistributions in binary form must reproduce the above copyright 12 * 2. Redistributions in binary form must reproduce the above copyright
13 * notice, this list of conditions and the following disclaimer in the 13 * notice, this list of conditions and the following disclaimer in the
14 * documentation and/or other materials provided with the distribution. 14 * documentation and/or other materials provided with the distribution.
@@ -22,43 +22,43 @@ @@ -22,43 +22,43 @@
22 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 22 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 23 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 24 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 25 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 26 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 27 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 28 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
29 * SUCH DAMAGE. 29 * SUCH DAMAGE.
30 * 30 *
31 * @(#)dead_vnops.c 8.2 (Berkeley) 11/21/94 31 * @(#)dead_vnops.c 8.2 (Berkeley) 11/21/94
32 */ 32 */
33 33
34#include <sys/cdefs.h> 34#include <sys/cdefs.h>
35__KERNEL_RCSID(0, "$NetBSD: dead_vnops.c,v 1.61 2017/04/26 03:02:49 riastradh Exp $"); 35__KERNEL_RCSID(0, "$NetBSD: dead_vnops.c,v 1.61.16.1 2020/03/21 15:24:06 martin Exp $");
36 36
37#include <sys/param.h> 37#include <sys/param.h>
38#include <sys/systm.h> 38#include <sys/systm.h>
39#include <sys/time.h> 39#include <sys/time.h>
40#include <sys/vnode.h> 40#include <sys/vnode.h>
41#include <sys/errno.h> 41#include <sys/errno.h>
42#include <sys/namei.h> 42#include <sys/namei.h>
43#include <sys/buf.h> 43#include <sys/buf.h>
44#include <sys/proc.h> 44#include <sys/proc.h>
45 45
46#include <miscfs/genfs/genfs.h> 46#include <miscfs/genfs/genfs.h>
47 47
48/* 48/*
49 * Prototypes for dead operations on vnodes. 49 * Prototypes for dead operations on vnodes.
50 */ 50 */
51#define dead_bwrite genfs_nullop 51#define dead_bwrite vn_bwrite
52int dead_lookup(void *); 52int dead_lookup(void *);
53int dead_open(void *); 53int dead_open(void *);
54#define dead_close genfs_nullop 54#define dead_close genfs_nullop
55int dead_read(void *); 55int dead_read(void *);
56int dead_write(void *); 56int dead_write(void *);
57#define dead_fcntl genfs_nullop 57#define dead_fcntl genfs_nullop
58int dead_ioctl(void *); 58int dead_ioctl(void *);
59int dead_poll(void *); 59int dead_poll(void *);
60int dead_remove(void *); 60int dead_remove(void *);
61int dead_link(void *); 61int dead_link(void *);
62int dead_rename(void *); 62int dead_rename(void *);
63int dead_rmdir(void *); 63int dead_rmdir(void *);
64#define dead_fsync genfs_nullop 64#define dead_fsync genfs_nullop