From owner-freebsd-geom@freebsd.org Wed Jul 1 15:41:26 2015 Return-Path: Delivered-To: freebsd-geom@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 7930999187B for ; Wed, 1 Jul 2015 15:41:26 +0000 (UTC) (envelope-from pawel@dawidek.net) Received: from mail.dawidek.net (garage.dawidek.net [91.121.88.72]) by mx1.freebsd.org (Postfix) with ESMTP id 441DE2CFD for ; Wed, 1 Jul 2015 15:41:25 +0000 (UTC) (envelope-from pawel@dawidek.net) Received: from localhost (58.wheelsystems.com [83.12.187.58]) by mail.dawidek.net (Postfix) with ESMTPSA id 20983586; Wed, 1 Jul 2015 17:41:18 +0200 (CEST) Date: Wed, 1 Jul 2015 17:42:33 +0200 From: Pawel Jakub Dawidek To: "Matthew D. Fuller" Cc: freebsd-geom@freebsd.org Subject: Re: geli panics my system after suspend-resume: g_eli_orphan_spoil_assert() called for cd0.eli Message-ID: <20150701154233.GA1456@garage.freebsd.pl> References: <20150613224602.GB1733@over-yonder.net> <20150615060128.GC1733@over-yonder.net> <20150629013011.GN50491@over-yonder.net> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="bg08WKrSYDhXBjb5" Content-Disposition: inline In-Reply-To: <20150629013011.GN50491@over-yonder.net> X-OS: FreeBSD 11.0-CURRENT amd64 User-Agent: Mutt/1.5.23 (2014-03-12) X-BeenThere: freebsd-geom@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: GEOM-specific discussions and implementations List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Jul 2015 15:41:26 -0000 --bg08WKrSYDhXBjb5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Jun 28, 2015 at 08:30:11PM -0500, Matthew D. Fuller wrote: > On Mon, Jun 15, 2015 at 01:01:28AM -0500 I heard the voice of > Matthew D. Fuller, and lo! it spake thus: > >=20 > > But presumably geli should treat that spoil event the same as an > > orpah, which at least avoids the panic and does the least wrong > > thing in the circumstances. Since the events DO occur (the code > > suggests the original thought was that they couldn't), we might as > > well deal with them as gracefully as possible. >=20 > Patch stuck in bugzilla at > to not get > lost. Hi Matthew. The spoil event happens when provider is open for writting for the first time (its open-for-write counter goes from 0 to >0). Since GELI opens its providers always exclusively there can be no write opens, thus the spoil event is unexpected. To see what exactly is happening I'd need to see the console output from before that happens with kern.geom.debugflags set to 5. --=20 Pawel Jakub Dawidek http://www.wheelsystems.com FreeBSD committer http://www.FreeBSD.org Am I Evil? Yes, I Am! http://mobter.com --bg08WKrSYDhXBjb5 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJVlAppAAoJEJVLhSuxKFt1lR8QAKQN7uxuB4VTmtLr2h9yyqM7 lcJdJri2PHKCkrlfKpymVYcHf/uYXR3XDvXQ4znJ/tpWjloIJoTo9kLN/6WkzyxD sCPBLPIhzJB/uXoMjo2mLSJsX6Xshl5w1P18nkdnyqUMtaexPBq2QcYbkDYQjNbs P3BogzxaTwUyco8ah01BKiZOzgW4KH7zmeWT/Bc7XrfEiuSm5oZpq3qO5+/8AQxo Z3qo5rye/CXvuNFQX1k3L3yqYo0+yzQ9ssJv/mjE9wclg8x9ZnIVPhtxSza1aHR8 Z/VeEnoNw1+AWhBWGQPpiVrl+lhCg67Sn9iHCV9HnFEJhC4XF6c0GTIX3nQnqLBE 0cFDiMGOPcymuVNo2v7/nJ5+wgcOVE6PMy9sXDcg30SQvg9Bfq9AkGrwYK5SoyFW fNEVYs/NpXLmHUVOMMp8oQNhOvMLnUxbLobGgIQD3gbt3k+WnZFm+WugTVKWtMU4 PL2rJLETtw75tRoZDkJDI+pB4hrK4cv0SAYXW2JQXMKFF62g52B5HRHuIWg/oEYn cyb2EZ+1GpzCJo0040L2RFLKIVJ9lkV7wkRKFbmjauaMAoYKzvJfmJ5FlfcYbDox UIVtov7VQ7y+0A5yJR5Il1dgrDZDjQxx4oRafBk11iAKop+rhUE1RAbw6aL4lNsM gGWZ40Ga8zhxXfvopBKt =9qRB -----END PGP SIGNATURE----- --bg08WKrSYDhXBjb5--