<feed xmlns='http://www.w3.org/2005/Atom'>
<title>renesas/drm.git/tests/nouveau, branch master</title>
<subtitle>libdrm, cloned from git://anongit.freedesktop.org/mesa/drm</subtitle>
<link rel='alternate' type='text/html' href='https://gitolite.ideasonboard.com/renesas/drm.git/'/>
<entry>
<title>nouveau: make nouveau importing global buffers completely thread-safe, with tests</title>
<updated>2015-03-13T19:26:33+00:00</updated>
<author>
<name>Maarten Lankhorst</name>
<email>maarten.lankhorst@ubuntu.com</email>
</author>
<published>2015-02-26T10:54:03+00:00</published>
<link rel='alternate' type='text/html' href='https://gitolite.ideasonboard.com/renesas/drm.git/commit/?id=5ea6f1c32628887c9df0c53bc8c199eb12633fec'/>
<id>5ea6f1c32628887c9df0c53bc8c199eb12633fec</id>
<content type='text'>
While I've closed off most races in a previous patch, a small race still existed
where importing then unreffing cound cause an invalid bo. Add a test for this case.

Racing sequence fixed:

- thread 1 releases bo, refcount drops to zero, blocks on acquiring nvdev-&gt;lock.
- thread 2 increases refcount to 1.
- thread 2 decreases refcount to zero, blocks on acquiring nvdev-&gt;lock.

At this point the 2 threads will clean up the same bo.

Signed-off-by: Maarten Lankhorst &lt;maarten.lankhorst@ubuntu.com&gt;
Reviewed-By: Emil Velikov &lt;emil.l.velikov@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
While I've closed off most races in a previous patch, a small race still existed
where importing then unreffing cound cause an invalid bo. Add a test for this case.

Racing sequence fixed:

- thread 1 releases bo, refcount drops to zero, blocks on acquiring nvdev-&gt;lock.
- thread 2 increases refcount to 1.
- thread 2 decreases refcount to zero, blocks on acquiring nvdev-&gt;lock.

At this point the 2 threads will clean up the same bo.

Signed-off-by: Maarten Lankhorst &lt;maarten.lankhorst@ubuntu.com&gt;
Reviewed-By: Emil Velikov &lt;emil.l.velikov@gmail.com&gt;
</pre>
</div>
</content>
</entry>
</feed>
