Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Dec 2004 18:10:48 +0300
From:      Gleb Smirnoff <glebius@freebsd.org>
To:        current@freebsd.org, stable@freebsd.org
Subject:   [TEST] netgraph callout interface
Message-ID:  <20041202151048.GA33485@cell.sick.ru>

next in thread | raw e-mail | index | archive | help
  Dear collegues,

  we are working on making netgraph ISR mpsafe. To do it we need to
fix all (ab)users of bare timeout(9) in src/sys/netgraph. These
timeout calls are running in synch with netgraph now because timeout(9)
is Giant-locked. As soon as we mark ISR mpsafe, they are going to break.

This patch semi-mechanically changes all timeout(9) calls to ng_callout(9),
which runs scheduled callouts in netgraph context:

	http://people.freebsd.org/~glebius/totest/netgraph_callout

It can be applied to HEAD or RELENG_5 (not 5.3-RELEASE). It patches
the following nodes:

	ng_bridge.c
	ng_l2tp.c
	ng_lmi.c
	ng_ppp.c
	ng_pppoe.c
	ng_tty.c

If you are using at least one of them, then I'm asking you to test the
patch and respond. Thanks in advance!

P.S. Sorry for crossposting. The target users are both RELENG_5 and CURRENT.

-- 
Totus tuus, Glebius.
GLEBIUS-RIPN GLEB-RIPE



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