[LTP] cfs-scheduler: Fixed "make check" warning in cfs_bandwidth01.c

linuxtestproject.agent@gmail.com linuxtestproject.agent@gmail.com
Tue Jun 2 13:24:00 CEST 2026


Hi Samir,

On Tue Jun  2 12:05:12 2026 +0200, Samir wrote:
> cfs-scheduler: Fixed "make check" warning in cfs_bandwidth01.c

> -static int may_have_waiters = 0;
> +static int may_have_waiters;

All good. Reviewed.

Pre-existing issues noticed in the surrounding code (not introduced
by this patch):

- cfs_bandwidth01.c in do_test() -- sleep(1) and sleep(2) are used
  for process synchronization (waiting for workers to start and for
  throttling to take effect). Is there a checkpoint-based or
  polling-based approach that could replace these to avoid flakiness
  under load? The checkpoint mechanism is already used elsewhere in
  this test.

---
Note:

The agent can sometimes produce false positives although often its
findings are genuine. If you find issues with the review, please
comment this email or ignore the suggestions.

Regards,
LTP AI Reviewer


More information about the ltp mailing list