Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

random: replace use of system_unbound_wq with system_dfl_wq

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>

authored by

Marco Crivellari and committed by
Jason A. Donenfeld
aba5f969 5d49f1a5

+4 -4
+4 -4
drivers/char/random.c
··· 259 259 u8 key[CHACHA_KEY_SIZE]; 260 260 261 261 /* Immediately schedule the next reseeding, so that it fires sooner rather than later. */ 262 - if (likely(system_unbound_wq)) 263 - queue_delayed_work(system_unbound_wq, &next_reseed, crng_reseed_interval()); 262 + if (likely(system_dfl_wq)) 263 + queue_delayed_work(system_dfl_wq, &next_reseed, crng_reseed_interval()); 264 264 265 265 extract_entropy(key, sizeof(key)); 266 266 ··· 741 741 742 742 if (orig < POOL_READY_BITS && new >= POOL_READY_BITS) { 743 743 crng_reseed(NULL); /* Sets crng_init to CRNG_READY under base_crng.lock. */ 744 - if (static_key_initialized && system_unbound_wq) 745 - queue_work(system_unbound_wq, &set_ready); 744 + if (static_key_initialized && system_dfl_wq) 745 + queue_work(system_dfl_wq, &set_ready); 746 746 atomic_notifier_call_chain(&random_ready_notifier, 0, NULL); 747 747 #ifdef CONFIG_VDSO_GETRANDOM 748 748 WRITE_ONCE(vdso_k_rng_data->is_ready, true);