stress
static void dummy_load(struct stress *stress)
struct stress *stress = container_of(work, typeof(*stress), work);
const int nlocks = stress->nlocks;
struct ww_mutex *locks = stress->locks;
ww_acquire_init(&ctx, stress->class);
dummy_load(stress);
if (!time_after(jiffies, stress->timeout)) {
} while (!time_after(jiffies, stress->timeout));
struct stress *stress = container_of(work, typeof(*stress), work);
order = get_random_order(stress->nlocks);
for (n = 0; n < stress->nlocks; n++) {
ll->lock = &stress->locks[order[n]];
ww_acquire_init(&ctx, stress->class);
dummy_load(stress);
} while (!time_after(jiffies, stress->timeout));
struct stress *stress = container_of(work, typeof(*stress), work);
const int nlocks = stress->nlocks;
struct ww_mutex *lock = stress->locks + get_random_u32_below(nlocks);
dummy_load(stress);
} while (!time_after(jiffies, stress->timeout));
struct stress *stress_array;
struct stress *stress;
stress = &stress_array[count++];
INIT_WORK(&stress->work, fn);
stress->class = class;
stress->locks = locks;
stress->nlocks = nlocks;
stress->timeout = jiffies + 2*HZ;
queue_work(wq, &stress->work);
ret = stress(class, 16, 2 * ncpus, STRESS_INORDER);
ret = stress(class, 16, 2 * ncpus, STRESS_REORDER);
ret = stress(class, 2046, hweight32(STRESS_ALL) * ncpus, STRESS_ALL);
if (stress(args)) {