unit: add jobs that were skipped because of ratelimit back to run_queue
authorMichal Sekletar <msekleta@redhat.com>
Thu, 25 Nov 2021 17:28:25 +0000 (18:28 +0100)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 29 Nov 2021 18:06:35 +0000 (03:06 +0900)
commitc29e6a9530316823b0455cd83eb6d0bb8dd664f4
tree9fbe0ad6fd3ea2cadcc809bb8f580a70a1929718
parent081f44859a3e81633418c4639e6a4bf1fd29f100
unit: add jobs that were skipped because of ratelimit back to run_queue

Assumption in edc027b was that job we first skipped because of active
ratelimit is still in run_queue. Hence we trigger the queue and dispatch
it in the next iteration. Actually we remove jobs from run_queue in
job_run_and_invalidate() before we call unit_start(). Hence if we want
to attempt to run the job again in the future we need to add it back
to run_queue.

Fixes #21458
src/core/mount.c