]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
random: replace use of system_unbound_wq with system_dfl_wq
authorMarco Crivellari <marco.crivellari@suse.com>
Thu, 30 Oct 2025 15:57:28 +0000 (16:57 +0100)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 30 Oct 2025 17:40:12 +0000 (18:40 +0100)
system_unbound_wq has been renamed to system_dfl_wq in 128ea9f6ccfb
("workqueue: Add system_percpu_wq and system_dfl_wq"), so update
random.c's usage of it system_unbound_wq to reflect the new change. The
old system_unbound_wq is slated for removal in the next few cycles.

Suggested-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Marco Crivellari <marco.crivellari@suse.com>
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
drivers/char/random.c

index d45383d57919fe62c4398a1f077cb27322fabf29..6873ec481d73e6ab72296ad4d3306a6959541e89 100644 (file)
@@ -259,8 +259,8 @@ static void crng_reseed(struct work_struct *work)
        u8 key[CHACHA_KEY_SIZE];
 
        /* Immediately schedule the next reseeding, so that it fires sooner rather than later. */
-       if (likely(system_unbound_wq))
-               queue_delayed_work(system_unbound_wq, &next_reseed, crng_reseed_interval());
+       if (likely(system_dfl_wq))
+               queue_delayed_work(system_dfl_wq, &next_reseed, crng_reseed_interval());
 
        extract_entropy(key, sizeof(key));
 
@@ -741,8 +741,8 @@ static void __cold _credit_init_bits(size_t bits)
 
        if (orig < POOL_READY_BITS && new >= POOL_READY_BITS) {
                crng_reseed(NULL); /* Sets crng_init to CRNG_READY under base_crng.lock. */
-               if (static_key_initialized && system_unbound_wq)
-                       queue_work(system_unbound_wq, &set_ready);
+               if (static_key_initialized && system_dfl_wq)
+                       queue_work(system_dfl_wq, &set_ready);
                atomic_notifier_call_chain(&random_ready_notifier, 0, NULL);
 #ifdef CONFIG_VDSO_GETRANDOM
                WRITE_ONCE(vdso_k_rng_data->is_ready, true);