Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Aug 2017 00:03:01 +0000
From:      "Owens, Keith" <Keith.Owens2@dell.com>
To:        "freebsd-hackers@freebsd.org" <freebsd-hackers@freebsd.org>
Subject:   Writing a GEOM class, threads that can or cannot sleep
Message-ID:  <0A22297308D147479E18AA1807A03807017CD4A8@MX202CL01.corp.emc.com>

next in thread | raw e-mail | index | archive | help

Looking at https://www.freebsd.org/doc/en/articles/geom-class/article.html, section 4.7.

"The event functions are" ... "These functions are called from the g_down kernel thread and there can be no sleeping in this context".

Correct me if I'm wrong, but only the start event goes via g_down.
dumpconf, orphan, spoiled events go via g_event which can sleep.
access can be called from any code on any thread (including g_down) so it must not sleep.

What is the process for updating articles?



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