geli broken

From: Hyo geol, Lee <hyogeollee_at_gmail.com>
Date: Tue, 27 Feb 2007 14:22:10 +0900
> On Saturday 03 February 2007 17:15, Pawel Jakub Dawidek wrote:
> >/ On Thu, Feb 01, 2007 at 11:21:18PM -0500, Yoshihiro Ota wrote:
> />/ > RCS file: /home/ncvs/src/sys/geom/eli/g_eli.c,v
> />/ > Working file: g_eli.c
> />/ > head: 1.34
> /...
> >/ > The change noted above caused problem with my system.
> />/ > After typing password, the geli device was never recognized never
> />/ > response. It looked like it was in an infinity loop.
> />/ > I have the following entry in my fstab and I need to type in my password
> />/ > for it.
> />/ >
> />/ > /dev/da0s2.eli          /export         ufs     rw              2       2
> />/ >
> />/ > After reverting to 1.33, my system started without problems.  I use
> />/ > GENERIC kernel configuration without WITNESS and INVARIANTS.
> />/
> />/ Could you provide dmesg from your machine?
> /
> Any news on this one? I experience the same problem.
>
> Stefan
I had same problem.

I assume that system has 1 cpu but turn on SMP option makes sleep forever.

Here some patch.

--- /usr/src/sys/geom/eli/g_eli.c.orig  Tue Feb 27 14:20:33 2007
+++ /usr/src/sys/geom/eli/g_eli.c       Tue Feb 27 14:21:34 2007
_at__at_ -326,7 +326,7 _at__at_
        sc = wr->w_softc;
 #ifdef SMP
        /* Before sched_bind() to a CPU, wait for all CPUs to go on-line. */
-       if (sc->sc_crypto == G_ELI_CRYPTO_SW && g_eli_threads == 0) {
+       if (smp_cpus != 1 && sc->sc_crypto == G_ELI_CRYPTO_SW && g_eli_threads == 0) {
                while (!smp_started)
                        tsleep(wr, 0, "geli:smp", hz / 4);
        }
Received on Tue Feb 27 2007 - 04:49:24 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:39:06 UTC