diff options
author | 2022-06-24 03:14:49 +0200 | |
---|---|---|
committer | 2022-06-24 22:42:04 +0200 | |
commit | 187c8f44b3e90c6015e92c587ad9d241476ed314 (patch) | |
tree | f546d7dc7edded194de711f2c9037b575fc513d1 /fs/btrfs | |
parent | powerpc/kvm: don't crash on missing rng, and use darn (diff) | |
download | linux-dev-187c8f44b3e90c6015e92c587ad9d241476ed314.tar.xz linux-dev-187c8f44b3e90c6015e92c587ad9d241476ed314.zip |
ath9k: sleep for less time when unregistering hwrng
Even though hwrng provides a `wait` parameter, it doesn't work very well
when waiting for a long time. There are numerous deadlocks that emerge
related to shutdown. Work around this API limitation by waiting for a
shorter amount of time and erroring more frequently. This commit also
prevents hwrng from splatting messages to dmesg when there's a timeout
and prevents calling msleep_interruptible() for tons of time when a
thread is supposed to be shutting down, since msleep_interruptible()
isn't actually interrupted by kthread_stop().
Reported-by: Gregory Erwin <gregerwin256@gmail.com>
Cc: Toke Høiland-Jørgensen <toke@redhat.com>
Cc: Kalle Valo <kvalo@kernel.org>
Cc: Rui Salvaterra <rsalvaterra@gmail.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Cc: stable@vger.kernel.org
Fixes: fcd09c90c3c5 ("ath9k: use hw_random API instead of directly dumping into random.c")
Link: https://lore.kernel.org/all/CAO+Okf6ZJC5-nTE_EJUGQtd8JiCkiEHytGgDsFGTEjs0c00giw@mail.gmail.com/
Link: https://lore.kernel.org/lkml/CAO+Okf5k+C+SE6pMVfPf-d8MfVPVq4PO7EY8Hys_DVXtent3HA@mail.gmail.com/
Link: https://bugs.archlinux.org/task/75138
Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'fs/btrfs')
0 files changed, 0 insertions, 0 deletions