diff options
author | Davidlohr Bueso <dave@stgolabs.net> | 2017-05-15 12:07:23 +0300 |
---|---|---|
committer | Paul E. McKenney <paulmck@linux.vnet.ibm.com> | 2017-12-11 20:18:28 +0300 |
commit | 2ce77d16db4240dd2e422fc0a5c26d3e2ec03446 (patch) | |
tree | fbce40ef15840b4aecb33f0c5744aa2a0fe1c2fb /kernel/torture.c | |
parent | f2f762608f45353b0b8c37507824f95bb716c3d5 (diff) | |
download | linux-2ce77d16db4240dd2e422fc0a5c26d3e2ec03446.tar.xz |
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 'kernel/torture.c')
0 files changed, 0 insertions, 0 deletions