|
@@ -560,7 +560,7 @@ static void torture_rwsem_read_delay(struct torture_random_state *trsp)
|
|
|
|
|
|
/* We want a long delay occasionally to force massive contention. */
|
|
/* We want a long delay occasionally to force massive contention. */
|
|
if (!(torture_random(trsp) %
|
|
if (!(torture_random(trsp) %
|
|
- (cxt.nrealwriters_stress * 2000 * longdelay_ms)))
|
|
|
|
|
|
+ (cxt.nrealreaders_stress * 2000 * longdelay_ms)))
|
|
mdelay(longdelay_ms * 2);
|
|
mdelay(longdelay_ms * 2);
|
|
else
|
|
else
|
|
mdelay(longdelay_ms / 2);
|
|
mdelay(longdelay_ms / 2);
|