Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Dec 2025 11:29:02 -0600
From:      "S. Ross Gohlke" <ross@bisd.ro>
To:        freebsd-current@FreeBSD.org
Subject:   mddestroy from script hangs
Message-ID:  <64d0d25a-4187-440d-ac68-c0e454bdcd84@bisd.ro>

index | next in thread | raw e-mail

I am running pkgbase upgraded on 20251204. Since the upgrade, two of my 
scripts invoking "mdconfig -du" suddenly hang:

^T

     load: 0.68  cmd: mdconfig 48250 [mddestroy] 845.83r 0.00u 0.00s 0% 
2808k
     mi_switch+0x172 sleepq_switch+0x109 _sleep+0x24d mddestroy+0xc4 
mdctlioctl+0x462 devfs_ioctl+0xd1 VOP_IOCTL_APV+0x51 vn_ioctl+0x160 
devfs_ioctl_f+0x1e kern_ioctl+0x2a1 sys_ioctl+0x133 amd64_syscall+0x169 
fast_syscall_common+0xf8

Sometimes I can quit it with ^C, sometimes I can't, but in either case 
subsequent invocations of mdconfig, like "mdconfig -lv", likewise hang.

If I disable the "mdconfig -du" in the script and perform it manually 
from the command line, it works fine. I tried sleeping for a bit before 
"mdconfig -du", that did not help.

These two scripts, one of which has been in use for years, one for 
months, have never exhibited this problem.

Regards,

Ross



home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?64d0d25a-4187-440d-ac68-c0e454bdcd84>