Subject: port-xen/29851: CALLBACK_IN_BLOCKING_CONTEXT callbacks can not block
To: None <port-xen-maintainer@netbsd.org, gnats-admin@netbsd.org,>
From: None <yamt@mwd.biglobe.ne.jp>
List: netbsd-bugs
Date: 04/01/2005 00:31:00
>Number: 29851
>Category: port-xen
>Synopsis: CALLBACK_IN_BLOCKING_CONTEXT callbacks can not block
>Confidential: no
>Severity: serious
>Priority: high
>Responsible: port-xen-maintainer
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Apr 01 00:31:00 +0000 2005
>Originator: YAMAMOTO Takashi <yamt@mwd.biglobe.ne.jp>
>Release: NetBSD 3.99.1
>Organization:
>Environment:
System: NetBSD kaeru 3.99.1 NetBSD 3.99.1 (build.kaeru.nodebug) #25: Fri Apr 1 08:28:25 JST 2005 takashi@kaeru:/home/takashi/work/kernel/build.kaeru.nodebug i386
Architecture: i386
Machine: i386
>Description:
even with CALLBACK_IN_BLOCKING_CONTEXT,
the callback will be called at softintr context.
thus it can not block.
>How-To-Repeat:
code inspection.
>Fix:
introduce a dedicated thread.
or
implement and use task queueing framework like linux or freebsd.
or
finish kcont and use it.
>Unformatted: