Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 26 Nov 2004 09:28:14 +0100
From:      Pawel Jakub Dawidek <pjd@FreeBSD.org>
To:        Poul-Henning Kamp <phk@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/sys/kern kern_descrip.c
Message-ID:  <20041126082814.GD7232@darkness.comp.waw.pl>
In-Reply-To: <200411260614.iAQ6E5kS088940@repoman.freebsd.org>
References:  <200411260614.iAQ6E5kS088940@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help

--6a4z/rxILaXg6B+u
Content-Type: text/plain; charset=iso-8859-2
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Nov 26, 2004 at 06:14:05AM +0000, Poul-Henning Kamp wrote:
+> phk         2004-11-26 06:14:05 UTC
+>=20
+>   FreeBSD src repository
+>=20
+>   Modified files:
+>     sys/kern             kern_descrip.c=20
+>   Log:
+>   Fix LOR.
+>  =20
+>   Solution pointed out by:        jhb
[...]
+> -		FILEDESC_LOCK(fdp);
+> +		FILEDESC_LOCK_FAST(fdp);
+>  		for (n =3D 0; n < fdp->fd_nfiles; ++n) {
+>  			if ((fp =3D fdp->fd_ofiles[n]) =3D=3D NULL)
+>  				continue;
+> @@ -2441,7 +2441,7 @@ sysctl_kern_file(SYSCTL_HANDLER_ARGS)
+>  			if (error)
+>  				break;
+>  		}
+> -		FILEDESC_UNLOCK(fdp);
+> +		FILEDESC_UNLOCK_FAST(fdp);

Does this fix the LOR or remove warning only?

--=20
Pawel Jakub Dawidek                       http://www.FreeBSD.org
pjd@FreeBSD.org                           http://garage.freebsd.pl
FreeBSD committer                         Am I Evil? Yes, I Am!

--6a4z/rxILaXg6B+u
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)

iD8DBQFBpukeForvXbEpPzQRApAVAKDdw5BH1BBbQxvJwqPgvhchMjVwmwCfZaTi
7yONzATf0RXT17ohRwWRH9o=
=Ed0Q
-----END PGP SIGNATURE-----

--6a4z/rxILaXg6B+u--



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