Date: Tue, 27 Feb 2007 14:22:10 +0900 From: "Hyo geol, Lee" <hyogeollee@gmail.com> To: freebsd-current@freebsd.org Subject: geli broken Message-ID: <45E3C002.6030100@gmail.com> References: 20070203161519.GD64874@garage.freebsd.pl
next in thread | raw e-mail | index | archive | help
> 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
@@ -326,7 +326,7 @@
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);
}
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45E3C002.6030100>
