Writing a GEOM class, threads that can or cannot sleep
Owens, Keith
Keith.Owens2 at dell.com
Mon Aug 7 00:11:46 UTC 2017
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?
More information about the freebsd-hackers
mailing list