From 1a0ffbeac3342bea36628d4f06de3578364e3cc8 Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Wed, 2 Feb 2022 01:26:08 +0000 Subject: [PATCH 08/13] fixup! specfs: Drain all I/O operations after last .d_close call. --- sys/miscfs/specfs/spec_vnops.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/miscfs/specfs/spec_vnops.c b/sys/miscfs/specfs/spec_vnops.c index c57ec62f3bbf..137a69a229a0 100644 --- a/sys/miscfs/specfs/spec_vnops.c +++ b/sys/miscfs/specfs/spec_vnops.c @@ -263,8 +263,8 @@ spec_io_enter(struct vnode *vp, struct specnode **snp, dev_t *devp) } /* - * Notify spec_node_revoke that we are doing an I/O operation - * which may not be not bracketed by fstrans(9) and thus is not + * Notify spec_close that we are doing an I/O operation which + * may not be not bracketed by fstrans(9) and thus is not * blocked by vfs suspension. * * We could hold this reference with psref(9) instead, but we @@ -301,9 +301,9 @@ spec_io_exit(struct vnode *vp, struct specnode *sn) KASSERT(vp->v_specnode == sn); /* - * We are done. Notify spec_node_revoke if appropriate. The + * We are done. Notify spec_close if appropriate. The * transition of 1 -> 0 must happen under device_lock so - * spec_node_revoke doesn't miss a wakeup. + * spec_close doesn't miss a wakeup. */ do { iocnt = atomic_load_relaxed(&sd->sd_iocnt);