diff options
author | Davidlohr Bueso <dave@stgolabs.net> | 2017-05-15 02:07:23 -0700 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-12-11 09:18:28 -0800 |
commit | 2ce77d16db4240dd2e422fc0a5c26d3e2ec03446 (patch) | |
tree | fbce40ef15840b4aecb33f0c5744aa2a0fe1c2fb /include/linux/dma-fence.h | |
parent | f2f762608f45353b0b8c37507824f95bb716c3d5 (diff) | |
download | blackbird-obmc-linux-2ce77d16db4240dd2e422fc0a5c26d3e2ec03446.tar.gz blackbird-obmc-linux-2ce77d16db4240dd2e422fc0a5c26d3e2ec03446.zip |
locking/locktorture: Fix num reader/writer corner cases
Things can explode for locktorture if the user does combinations
of nwriters_stress=0 nreaders_stress=0. Fix this by not assuming
we always want to torture writer threads.
Reported-by: Jeremy Linton <jeremy.linton@arm.com>
Signed-off-by: Davidlohr Bueso <dbueso@suse.de>
Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Jeremy Linton <jeremy.linton@arm.com>
Tested-by: Jeremy Linton <jeremy.linton@arm.com>
Diffstat (limited to 'include/linux/dma-fence.h')
0 files changed, 0 insertions, 0 deletions