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
[-- Attachment #1 --]
On Fri, Nov 26, 2004 at 06:14:05AM +0000, Poul-Henning Kamp wrote:
+> phk 2004-11-26 06:14:05 UTC
+>
+> FreeBSD src repository
+>
+> Modified files:
+> sys/kern kern_descrip.c
+> Log:
+> Fix LOR.
+>
+> Solution pointed out by: jhb
[...]
+> - FILEDESC_LOCK(fdp);
+> + FILEDESC_LOCK_FAST(fdp);
+> for (n = 0; n < fdp->fd_nfiles; ++n) {
+> if ((fp = fdp->fd_ofiles[n]) == 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?
--
Pawel Jakub Dawidek http://www.FreeBSD.org
pjd@FreeBSD.org http://garage.freebsd.pl
FreeBSD committer Am I Evil? Yes, I Am!
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (FreeBSD)
iD8DBQFBpukeForvXbEpPzQRApAVAKDdw5BH1BBbQxvJwqPgvhchMjVwmwCfZaTi
7yONzATf0RXT17ohRwWRH9o=
=Ed0Q
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20041126082814.GD7232>
