Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Mar 2003 11:56:32 +0200
From:      Sheldon Hearn <sheldonh@starjuice.net>
To:        Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc:        Nate Lawson <nate@root.org>, cvs-src@FreeBSD.org, src-committers@FreeBSD.org
Subject:   Re: cvs commit: src/sys/sys devicestat.h
Message-ID:  <20030310095632.GB12316@starjuice.net>
In-Reply-To: <78207.1047196679@critter.freebsd.dk>
References:  <Pine.BSF.4.21.0303082347200.90870-100000@root.org> <78207.1047196679@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
On (2003/03/09 08:57), Poul-Henning Kamp wrote:

> >How about a mtx covering the structure and a read from the device returns
> >the structure under lock?
> 
> The goal is to avoid locking in the kernel and put the overhead in
> userland.  Remember, most of the time nobody cares about the statistics
> so they should be cheap.

Amen!

Ciao,
Sheldon.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-src" in the body of the message




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