<feed xmlns='http://www.w3.org/2005/Atom'>
<title>linux/kernel/rcutorture.c, branch v2.6.19</title>
<subtitle>Linux kernel source tree</subtitle>
<id>https://git.amat.us/linux/atom/kernel/rcutorture.c?h=v2.6.19</id>
<link rel='self' href='https://git.amat.us/linux/atom/kernel/rcutorture.c?h=v2.6.19'/>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/'/>
<updated>2006-10-04T14:55:31Z</updated>
<entry>
<title>[PATCH] rcu: add sched torture type to rcutorture</title>
<updated>2006-10-04T14:55:31Z</updated>
<author>
<name>Josh Triplett</name>
<email>josht@us.ibm.com</email>
</author>
<published>2006-10-04T09:17:16Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=4b6c2cca6eef9cc4a15350bf1c61839e12e08b84'/>
<id>urn:sha1:4b6c2cca6eef9cc4a15350bf1c61839e12e08b84</id>
<content type='text'>
Implement torture testing for the "sched" variant of RCU, which uses
preempt_disable, preempt_enable, and synchronize_sched.

Signed-off-by: Josh Triplett &lt;josh@freedesktop.org&gt;
Acked-by: Paul E. McKenney &lt;paulmck@us.ibm.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] rcu: add rcu_bh_sync torture type to rcutorture</title>
<updated>2006-10-04T14:55:31Z</updated>
<author>
<name>Josh Triplett</name>
<email>josht@us.ibm.com</email>
</author>
<published>2006-10-04T09:17:16Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=11a147013e39ff4cb031395cb78a9d307c4799cd'/>
<id>urn:sha1:11a147013e39ff4cb031395cb78a9d307c4799cd</id>
<content type='text'>
Use the newly-generic synchronous deferred free function to implement torture
testing for rcu_bh using synchronize_rcu_bh rather than the asynchronous
call_rcu_bh.

Signed-off-by: Josh Triplett &lt;josh@freedesktop.org&gt;
Acked-by: Paul E. McKenney &lt;paulmck@us.ibm.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] rcu: add rcu_sync torture type to rcutorture</title>
<updated>2006-10-04T14:55:31Z</updated>
<author>
<name>Josh Triplett</name>
<email>josht@us.ibm.com</email>
</author>
<published>2006-10-04T09:17:15Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=20d2e4283a97665a3db78c60dfa342a0c7c1b180'/>
<id>urn:sha1:20d2e4283a97665a3db78c60dfa342a0c7c1b180</id>
<content type='text'>
Use the newly-generic synchronous deferred free function to implement torture
testing for RCU using synchronize_rcu rather than the asynchronous call_rcu.

Signed-off-by: Josh Triplett &lt;josh@freedesktop.org&gt;
Acked-by: Paul E. McKenney &lt;paulmck@us.ibm.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] rcu: refactor srcu_torture_deferred_free to work for any implementation</title>
<updated>2006-10-04T14:55:31Z</updated>
<author>
<name>Josh Triplett</name>
<email>josht@us.ibm.com</email>
</author>
<published>2006-10-04T09:17:14Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=e3033736581f125ba5fd6c0760e0d430d54fb5c0'/>
<id>urn:sha1:e3033736581f125ba5fd6c0760e0d430d54fb5c0</id>
<content type='text'>
Make srcu_torture_deferred_free use cur_ops-&gt;sync() so it will work for any
implementation.  Move and rename it in preparation for use in the ops of other
implementations.

Signed-off-by: Josh Triplett &lt;josh@freedesktop.org&gt;
Acked-by: Paul E. McKenney &lt;paulmck@us.ibm.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] RCU: add fake writers to rcutorture</title>
<updated>2006-10-04T14:55:31Z</updated>
<author>
<name>Josh Triplett</name>
<email>josht@us.ibm.com</email>
</author>
<published>2006-10-04T09:17:13Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=b772e1dd4b1e60a7a160f7bd4ea08e28394ceb54'/>
<id>urn:sha1:b772e1dd4b1e60a7a160f7bd4ea08e28394ceb54</id>
<content type='text'>
rcutorture currently has one writer and an arbitrary number of readers.  To
better exercise some of the code paths in RCU implementations, add fake
writer threads which call the synchronize function for the RCU variant in a
loop, with a delay between calls to arrange for different numbers of
writers running in parallel.

[bunk@stusta.de: cleanup]
Acked-by: Paul McKenney &lt;paulmck@us.ibm.com&gt;
Cc: Dipkanar Sarma &lt;dipankar@in.ibm.com&gt;
Signed-off-by: Josh Triplett &lt;josh@freedesktop.org&gt;
Signed-off-by: Adrian Bunk &lt;bunk@stusta.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] rcu: Fix sign bug making rcu_random always return the same sequence</title>
<updated>2006-10-04T14:55:31Z</updated>
<author>
<name>Josh Triplett</name>
<email>josht@us.ibm.com</email>
</author>
<published>2006-10-04T09:17:12Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=75cfef32f26d03f5d0a0833572d52f94ad858a36'/>
<id>urn:sha1:75cfef32f26d03f5d0a0833572d52f94ad858a36</id>
<content type='text'>
rcu_random uses a counter rrs_count to occasionally mix data from
get_random_bytes into the state of its pseudorandom generator.  However,
the rrs_counter gets declared as an unsigned long, and rcu_random checks
for --rrs_count &lt; 0, so this code will never mix any real random data into
the state, and will thus always return the same sequence of random numbers.

Also, change the return value of rcu_random from long to unsigned long, to
avoid potential issues caused by the use of the % operator, which can
return negative values for negative left operands.

Signed-off-by: Josh Triplett &lt;josh@freedesktop.org&gt;
Acked-by: Paul E. McKenney &lt;paulmck@us.ibm.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] rcu: Avoid kthread_stop on invalid pointer if rcutorture reader startup fails</title>
<updated>2006-10-04T14:55:30Z</updated>
<author>
<name>Josh Triplett</name>
<email>josht@us.ibm.com</email>
</author>
<published>2006-10-04T09:17:11Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=2860aaba4dc87fa43c08724434b87a8650f3bff5'/>
<id>urn:sha1:2860aaba4dc87fa43c08724434b87a8650f3bff5</id>
<content type='text'>
rcu_torture_init kmallocs the array of reader threads, then creates each
one with kthread_run, cleaning up with rcu_torture_cleanup if this fails.
rcu_torture_cleanup calls kthread_stop on any non-NULL pointer in the
array; however, any readers after the one that failed to start up will have
invalid pointers, not null pointers.  Avoid this by using kzalloc instead.

Signed-off-by: Josh Triplett &lt;josh@freedesktop.org&gt;
Acked-by: Paul E. McKenney &lt;paulmck@us.ibm.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] rcu: Mention rcu_bh in description of rcutorture's torture_type parameter</title>
<updated>2006-10-04T14:55:30Z</updated>
<author>
<name>Josh Triplett</name>
<email>josht@us.ibm.com</email>
</author>
<published>2006-10-04T09:17:10Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=3c29e03d9121e07714fb9e5303d9b026800ffd5a'/>
<id>urn:sha1:3c29e03d9121e07714fb9e5303d9b026800ffd5a</id>
<content type='text'>
The comment for rcutorture's torture_type parameter only lists the RCU
variants rcu and srcu, but not rcu_bh; add rcu_bh to the list.

Signed-off-by: Josh Triplett &lt;josh@freedesktop.org&gt;
Acked-by: Paul E. McKenney &lt;paulmck@us.ibm.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] rcu: Add MODULE_AUTHOR to rcutorture module</title>
<updated>2006-10-04T14:55:30Z</updated>
<author>
<name>Josh Triplett</name>
<email>josht@us.ibm.com</email>
</author>
<published>2006-10-04T09:17:09Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=ff2c93a5373f12f86f3281705d11278a9f2334e2'/>
<id>urn:sha1:ff2c93a5373f12f86f3281705d11278a9f2334e2</id>
<content type='text'>
Signed-off-by: Josh Triplett &lt;josh@freedesktop.org&gt;
Acked-by: "Paul E. McKenney" &lt;paulmck@us.ibm.com&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
<entry>
<title>[PATCH] srcu-3: add SRCU operations to rcutorture</title>
<updated>2006-10-04T14:55:30Z</updated>
<author>
<name>Paul E. McKenney</name>
<email>paulmck@us.ibm.com</email>
</author>
<published>2006-10-04T09:17:03Z</published>
<link rel='alternate' type='text/html' href='https://git.amat.us/linux/commit/?id=b2896d2e75c87ea6a842c088db730b03c91db737'/>
<id>urn:sha1:b2896d2e75c87ea6a842c088db730b03c91db737</id>
<content type='text'>
Adds SRCU operations to rcutorture and updates rcutorture documentation.
Also increases the stress imposed by the rcutorture test.

[bunk@stusta.de: make needlessly global code static]
Signed-off-by: Paul E. McKenney &lt;paulmck@us.ibm.com&gt;
Cc: Paul E. McKenney &lt;paulmck@us.ibm.com&gt;
Signed-off-by: Adrian Bunk &lt;bunk@stusta.de&gt;
Signed-off-by: Andrew Morton &lt;akpm@osdl.org&gt;
Signed-off-by: Linus Torvalds &lt;torvalds@osdl.org&gt;
</content>
</entry>
</feed>
