PR: 295453
Details
Details
Diff Detail
Diff Detail
- Repository
- rG FreeBSD src repository
- Lint
Lint Not Applicable - Unit
Tests Not Applicable
Event Timeline
Comment Actions
Sorry, looking at this again I'm a bit confused. What does vt9p_detach() have to do with directory unmounting? vt9p_detach() runs when the virtio device itself is detached, which I presume wouldn't happen unless someone used devctl(8) to do so explicitly. What am I missing?
Comment Actions
The title was misleading. It should be "disallow P9 device to detach if a session is in progress." My bad.
What does vt9p_detach() have to do with directory unmounting
We don't check whether someone is using the channel before detaching the device. If you unmount after kldunload, then you get a panic.
Edit: actually, it seems you don't even need to umount for the panic. Just kldunload is enough.