Re: [PATCH v2 1/2] locktorture: doesn't check nreaders_stress when no readlock support

2020-09-18 Thread Hou Tao
Hi Paul, On 2020/9/19 1:59, Paul E. McKenney wrote: > On Fri, Sep 18, 2020 at 07:44:24PM +0800, Hou Tao wrote: >> When do locktorture for exclusive lock which doesn't have readlock >> support, the following module parameters will be considered as valid: >> >> torture_type=mutex_lock

Re: [PATCH v2 1/2] locktorture: doesn't check nreaders_stress when no readlock support

2020-09-18 Thread Paul E. McKenney
On Fri, Sep 18, 2020 at 07:44:24PM +0800, Hou Tao wrote: > When do locktorture for exclusive lock which doesn't have readlock > support, the following module parameters will be considered as valid: > > torture_type=mutex_lock nwriters_stress=0 nreaders_stress=1 > > But locktorture will do

[PATCH v2 1/2] locktorture: doesn't check nreaders_stress when no readlock support

2020-09-18 Thread Hou Tao
When do locktorture for exclusive lock which doesn't have readlock support, the following module parameters will be considered as valid: torture_type=mutex_lock nwriters_stress=0 nreaders_stress=1 But locktorture will do nothing useful, so instead of permitting these useless parameters, let's