[Bug 248500] cam_sim_free() sleeping forever

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 25 Mar 2026 08:40:55 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=248500

--- Comment #5 from Fabian Keil <fk@fabiankeil.de> ---
I was able to reproduce the problem again while running:
<https://www.fabiankeil.de/tmp/freebsd-pr-248500-cam_sim_free-sleeping/sim-refcount-trace.d>

The output was:
<https://www.fabiankeil.de/tmp/freebsd-pr-248500-cam_sim_free-sleeping/sudo__home_fk_scripts_sim-refcount-trace.d-20260325T090154-sandisk-ultra2-detached-while-transfering.txt>

And the dmesg messages:
<https://www.fabiankeil.de/tmp/freebsd-pr-248500-cam_sim_free-sleeping/dmesg-messages-pr-248500.txt>

My first impression is that geom is (re-)tasting which prevents the
sim->refcount from reaching 0.

-- 
You are receiving this mail because:
You are the assignee for the bug.