NetBSD Problem Report #45053

From jruohone@gmail.com  Sun Jun 12 06:12:00 2011
Return-Path: <jruohone@gmail.com>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id 0A29F63C7D9
	for <gnats-bugs@gnats.netbsd.org>; Sun, 12 Jun 2011 06:12:00 +0000 (UTC)
Message-Id: <20110612061152.EF77C56C5@marx.bitnet>
Date: Sun, 12 Jun 2011 09:11:52 +0300 (EEST)
From: Jukka Ruohonen <jruohonen@iki.fi>
Sender: a b <jruohone@gmail.com>
Reply-To: jruohonen@iki.fi
To: gnats-bugs@gnats.NetBSD.org
Subject: priority queue support for workqueue(9)
X-Send-Pr-Version: 3.95

>Number:         45053
>Category:       kern
>Synopsis:       priority queue support for workqueue(9)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Sun Jun 12 06:15:00 +0000 2011
>Originator:     Jukka Ruohonen
>Release:        5.99.52
>Organization:
-
>Environment:

>Description:

There has been some discussions about deprecating sysmon_taskq(9) on the
basis that only one interface, i.e. workqueue(9) in this case, should be
used, and that sysmon_taskq(9) may contain possible locking issues.

However, for this to be possible, workqueue(9) must support priorities.
In other words, it must be possible to schedule high/medium/low/etc. tasks
such that the oldest task of the highest priority is always run first.

(This requirement comes from acpi(4) where the "notifications" from the SCI
interrupt must always run before the notifications to the listeners/drivers.)

>How-To-Repeat:

Code inspection.

>Fix:

Implement priorities for workqueue(9).

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.