cvs commit: src/sys/kern kern_descrip.c
Pawel Jakub Dawidek
pjd at FreeBSD.org
Fri Nov 26 00:28:16 PST 2004
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 at FreeBSD.org http://garage.freebsd.pl
FreeBSD committer Am I Evil? Yes, I Am!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20041126/6a4505f8/attachment.bin
More information about the cvs-src
mailing list