Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 30 Oct 2011 18:54:51 +0400
From:      Lev Serebryakov <lev@FreeBSD.org>
To:        current@freebsd.org, hackers@freebsd.org
Subject:   In-kernel API for tasks, which could wait?
Message-ID:  <43470728.20111030185451@serebryakov.spb.ru>

next in thread | raw e-mail | index | archive | help
Hello, Current.

  It was explained to me, that all three GEOM threads (up, down and
ctl) could not execute code, which should sleep. It looks sound for
up and down, but not for ctl, but it is so now.

  So, I have question: what should I do if I need to perofrm ONE
action, which could block for some time (for example, open file or
create ALQ)?

 I could create thread for this. But it looks strange and too heavy: create=
 thread
to call one function once.

 Maybe, kernel has some API to postpone such task to one,
always-running idle thread?

--=20
// Black Lion AKA Lev Serebryakov <lev@FreeBSD.org>




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