Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Aug 2006 15:23:07 GMT
From:      Roman Divacky <rdivacky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 104043 for review
Message-ID:  <200608151523.k7FFN7rN002736@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=104043

Change 104043 by rdivacky@rdivacky_witten on 2006/08/15 15:22:57

	Grrrr. Do the locking/unlocking correctly this time.

Affected files ...

.. //depot/projects/soc2006/rdivacky_linuxolator/compat/linux/linux_futex.c#27 edit

Differences ...

==== //depot/projects/soc2006/rdivacky_linuxolator/compat/linux/linux_futex.c#27 (text+ko) ====

@@ -339,9 +339,13 @@
 			return f;
 		}
 	}
+	if (locked == FUTEX_UNLOCKED)
+	   	FUTEX_UNLOCK;
 
 	/* Not found, create it */
 	f = malloc(sizeof(*f), M_LINUX, M_WAITOK);
+	if (locked == FUTEX_UNLOCKED)
+	   	FUTEX_LOCK;
 	f->f_uaddr = uaddr;
 	f->f_refcount = 1;
 	TAILQ_INIT(&f->f_waiting_proc);



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