diff options
author | Hou Tao <houtao1@huawei.com> | 2020-09-18 19:44:24 +0800 |
---|---|---|
committer | Paul E. McKenney <paulmck@kernel.org> | 2020-11-06 17:13:52 -0800 |
commit | e5ace37d83af459bd491847df570b6763c602344 (patch) | |
tree | 66f9c596e79916bffda32bee4e420a72464eda04 /lib/digsig.c | |
parent | 6f26d010e678249367cc00b5a827c3731c8138f3 (diff) | |
download | lwn-e5ace37d83af459bd491847df570b6763c602344.tar.gz lwn-e5ace37d83af459bd491847df570b6763c602344.zip |
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: Hou Tao <houtao1@huawei.com>
Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
Diffstat (limited to 'lib/digsig.c')
0 files changed, 0 insertions, 0 deletions