diff options
| author | hannken <hannken@NetBSD.org> | 2023-06-15 09:13:36 +0000 |
|---|---|---|
| committer | hannken <hannken@NetBSD.org> | 2023-06-15 09:13:36 +0000 |
| commit | 307b7d1ee2a091bfdf6c9fd1d253a87137f7d8f3 (patch) | |
| tree | e175092d76b2b80560b849e806ddd8970bc8d661 | |
| parent | 6140a4cbc19978bd418f1f809eed19f0f260ffbd (diff) | |
VOP_IOCTL() is a wrapper around spec_ioctl() aka Xdev_ioctl() and
protected with spec_io_enter()/spec_io_exit() so there is no need
to force specific vnode locking.
Set locking requirement to '= = =' (unchanged, locked or unlocked).
PR kern/57450 (unplugging hung USB disk triggers panic via _vstate_assert)
| -rw-r--r-- | share/man/man9/vnodeops.9 | 6 | ||||
| -rw-r--r-- | sys/kern/vnode_if.src | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/share/man/man9/vnodeops.9 b/share/man/man9/vnodeops.9 index af74dd01729..d54805ed816 100644 --- a/share/man/man9/vnodeops.9 +++ b/share/man/man9/vnodeops.9 @@ -1,4 +1,4 @@ -.\" $NetBSD: vnodeops.9,v 1.100 2017/11/19 21:06:10 christos Exp $ +.\" $NetBSD: vnodeops.9,v 1.101 2023/06/15 09:13:36 hannken Exp $ .\" .\" Copyright (c) 2001, 2005, 2006 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -27,7 +27,7 @@ .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE .\" POSSIBILITY OF SUCH DAMAGE. .\" -.Dd November 19, 2017 +.Dd June 15, 2023 .Dt VNODEOPS 9 .Os .Sh NAME @@ -709,7 +709,7 @@ existing data, or some other data, or trash. Perform device-specific I/O. The argument .Fa vp -is the locked vnode of the file, normally representing a device. +is the vnode of the file, normally representing a device. The argument .Fa command specifies the device-specific operation to perform and diff --git a/sys/kern/vnode_if.src b/sys/kern/vnode_if.src index e9ff8d77afe..e00a4710c9a 100644 --- a/sys/kern/vnode_if.src +++ b/sys/kern/vnode_if.src @@ -1,4 +1,4 @@ -# $NetBSD: vnode_if.src,v 1.84 2022/05/03 08:33:59 hannken Exp $ +# $NetBSD: vnode_if.src,v 1.85 2023/06/15 09:13:36 hannken Exp $ # # Copyright (c) 1992, 1993 # The Regents of the University of California. All rights reserved. @@ -217,11 +217,11 @@ vop_fdiscard { }; # -#% ioctl vp U U U +#% ioctl vp = = = # vop_ioctl { FSTRANS=NO - IN LOCKED=NO struct vnode *vp; + IN struct vnode *vp; IN u_long command; IN void *data; IN int fflag; |
