lkml.org 
[lkml]   [2023]   [Feb]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 4/4] locktorture: With nested locks, occasionally skip main lock
On Fri, 03 Feb 2023, John Stultz wrote:

>@@ -754,21 +755,28 @@ static int lock_torture_writer(void *arg)
> schedule_timeout_uninterruptible(1);
>
> lockset_mask = torture_random(&rand);
>+ skip_main_lock = nlocks && !(torture_random(&rand) % 100);

For the sake of future readers of locktorture.c, this deserves a comment
as to why we wanna skip the main lock (copy/paste from the changelog).

Thanks,
Davidlohr

\
 
 \ /
  Last update: 2023-03-27 00:10    [W:0.116 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site