From 51cbf4d83a0b4e38927b225b977ee0fed7d75329 Mon Sep 17 00:00:00 2001 From: Taylor R Campbell Date: Wed, 2 Feb 2022 01:26:53 +0000 Subject: [PATCH 09/13] fixup! specfs: Take an I/O reference across bdev/cdev_open. --- sys/miscfs/specfs/spec_vnops.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/miscfs/specfs/spec_vnops.c b/sys/miscfs/specfs/spec_vnops.c index 137a69a229a0..33cd09d8fbba 100644 --- a/sys/miscfs/specfs/spec_vnops.c +++ b/sys/miscfs/specfs/spec_vnops.c @@ -806,12 +806,12 @@ spec_open(void *v) * calling .d_open, so release it now and reacquire it when * done. * - * Take an I/O reference so that any concurrent + * Take an I/O reference so that any concurrent spec_close via * spec_node_revoke will wait for us to finish calling .d_open. * The vnode can't be dead at this point because we have it * locked. Note that if revoked, the driver will interrupt - * .d_open before spec_node_revoke starts waiting for I/O to - * drain so this doesn't deadlock. + * .d_open before spec_close starts waiting for I/O to drain so + * this doesn't deadlock. */ VOP_UNLOCK(vp); error = spec_io_enter(vp, &sn1, &dev1);