Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 29 Dec 2006 23:39:04 +0100
From:      Marius Nuennerich <marius.nuennerich@gmx.net>
To:        freebsd-geom@freebsd.org
Subject:   GEOM_AES using malloc with M_WAITOK
Message-ID:  <20061229233904.1b90ba62@sol.hackerzberg.local>

next in thread | raw e-mail | index | archive | help
Hi List,

I'm new to geom and thought I'd take an easy class to learn. So I read
geom_aes.c and noticed that it uses the M_WAITOK flag with g_malloc. In
another place I read, that it is not OK to sleep in the g_up and g_down
threads. Isn't this g_malloc called in one of these threads?

Yes, I know that geom_aes is more for educational purpose. But then it
should be right even more.

regards
Marius



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061229233904.1b90ba62>