geli panics my system after suspend-resume: g_eli_orphan_spoil_assert() called for cd0.eli

Pawel Jakub Dawidek pjd at FreeBSD.org
Fri Jul 10 19:29:07 UTC 2015


On Thu, Jul 02, 2015 at 03:01:09PM -0500, Matthew D. Fuller wrote:
> On Thu, Jul 02, 2015 at 11:49:10AM +0200 I heard the voice of
> Pawel Jakub Dawidek, and lo! it spake thus:
> > 
> > With g_media_changed() we can get spoil event even if we hold
> > provider exclusively open. Your patch, Matthew, is correct, but
> > could you also update the comment there to take into account
> > g_media_changed() addition?
> 
> Sure, you mean replacing the comment saying spoiling can't happen?
> Something like:
> 
> Index: g_eli.c
> ===================================================================
> --- g_eli.c	(revision 285057)
> +++ g_eli.c	(working copy)
> @@ -730,10 +730,10 @@
>  	sc = malloc(sizeof(*sc), M_ELI, M_WAITOK | M_ZERO);
>  	gp->start = g_eli_start;
>  	/*
> -	 * Spoiling cannot happen actually, because we keep provider open for
> -	 * writing all the time or provider is read-only.
> +	 * Spoiling can happen even though we have the provider open
> +	 * exclusively, e.g. through media change events.
>  	 */
> -	gp->spoiled = g_eli_orphan_spoil_assert;
> +	gp->spoiled = g_eli_orphan;
>  	gp->orphan = g_eli_orphan;
>  	gp->dumpconf = g_eli_dumpconf;
>  	/*

Committed, thanks!

-- 
Pawel Jakub Dawidek                       http://www.wheelsystems.com
FreeBSD committer                         http://www.FreeBSD.org
Am I Evil? Yes, I Am!                     http://mobter.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.freebsd.org/pipermail/freebsd-geom/attachments/20150710/b9b837c1/attachment.bin>


More information about the freebsd-geom mailing list