Skip to content
Commit e5ace37d authored by Hou Tao's avatar Hou Tao Committed by Paul E. McKenney
Browse files

locktorture: Ignore nreaders_stress if no readlock support



Exclusive locks do not have readlock support, which means that a
locktorture run with the following module parameters will do nothing:

 torture_type=mutex_lock nwriters_stress=0 nreaders_stress=1

This commit therefore rejects this combination for exclusive locks by
returning -EINVAL during module init.

Signed-off-by: default avatarHou Tao <houtao1@huawei.com>
Signed-off-by: default avatarPaul E. McKenney <paulmck@kernel.org>
parent 6f26d010
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment