summaryrefslogtreecommitdiff
path: root/kernel/torture.c
diff options
context:
space:
mode:
authorDavidlohr Bueso <dave@stgolabs.net>2017-05-15 12:07:23 +0300
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2017-12-11 20:18:28 +0300
commit2ce77d16db4240dd2e422fc0a5c26d3e2ec03446 (patch)
treefbce40ef15840b4aecb33f0c5744aa2a0fe1c2fb /kernel/torture.c
parentf2f762608f45353b0b8c37507824f95bb716c3d5 (diff)
downloadlinux-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