Created attachment 158142 [details] Patch g_eli assumes that GEOM spoil events can't happen, and so calls panic() if they do. But the assumption is incorrect; x-ref post at https://lists.freebsd.org/pipermail/freebsd-current/2015-June/056193.html (and later continuation on -geom, e.g. https://lists.freebsd.org/pipermail/freebsd-geom/2015-June/006142.html ). So the event should really be treated like an orphan, which just detaches the device.
Created attachment 158515 [details] Patch Updated patch with requested comment improvement.
A commit references this bug: Author: pjd Date: Fri Jul 10 19:27:20 UTC 2015 New revision: 285363 URL: https://svnweb.freebsd.org/changeset/base/285363 Log: Spoil even can happen for some time now even on providers opened exclusively (on the media change event). Update GELI to handle that situation. PR: 201185 Submitted by: Matthew D. Fuller Changes: head/sys/geom/eli/g_eli.c