From owner-freebsd-current@FreeBSD.ORG Tue Jul 10 17:16:37 2007 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5E07216A41F for ; Tue, 10 Jul 2007 17:16:37 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [83.98.131.211]) by mx1.freebsd.org (Postfix) with ESMTP id 26DFF13C457 for ; Tue, 10 Jul 2007 17:16:36 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 73FC01CCCF; Tue, 10 Jul 2007 19:16:31 +0200 (CEST) Date: Tue, 10 Jul 2007 19:16:31 +0200 From: Ed Schouten To: FreeBSD Current Message-ID: <20070710171631.GF55449@hoeg.nl> References: <20070710165606.GE55449@hoeg.nl> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="8S1fMsFYqgBC+BN/" Content-Disposition: inline In-Reply-To: <20070710165606.GE55449@hoeg.nl> User-Agent: Mutt/1.5.16 (2007-06-09) Subject: D_NEEDGIANT usage in dev/io/iodev.c X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 10 Jul 2007 17:16:37 -0000 --8S1fMsFYqgBC+BN/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, The same applies to dev/io/iodev.c; according to sys/proc.h, td->td_frame (used in ioopen() and ioclose()) is only accessed by curthread, which means we can use it without acquiring Giant. Yours, --=20 Ed Schouten WWW: http://g-rave.nl/ --8S1fMsFYqgBC+BN/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGk77v52SDGA2eCwURAsxKAJ43vMLhVXgMtKLnVOLUQtndyDmlJACfes6o +eGhGhZgA323UuxJNO+y4mY= =w9X/ -----END PGP SIGNATURE----- --8S1fMsFYqgBC+BN/--