cvs commit: src/sys/kern kern_synch.c
Nate Lawson
nate at root.org
Sat Nov 27 10:15:26 PST 2004
David Xu wrote:
> davidxu 2004-11-27 11:43:31 UTC
>
> FreeBSD src repository
>
> Modified files:
> sys/kern kern_synch.c
> Log:
> Unlock mutex if PDROP was set by caller.
>
> Revision Changes Path
> 1.265 +2 -0 src/sys/kern/kern_synch.c
>
>
> Index: src/sys/kern/kern_synch.c
> diff -u src/sys/kern/kern_synch.c:1.264 src/sys/kern/kern_synch.c:1.265
> --- src/sys/kern/kern_synch.c:1.264 Sat Oct 16 06:38:22 2004
> +++ src/sys/kern/kern_synch.c Sat Nov 27 11:43:31 2004
> @@ -175,6 +175,8 @@
> mtx_unlock_spin(&sched_lock);
> if (rval != 0) {
> sleepq_release(ident);
> + if (mtx != NULL && priority & PDROP)
> + mtx_unlock(mtx);
> return (rval);
> }
> }
Are you serious? PDROP was unimplemented until now?
-Nate
More information about the cvs-all
mailing list