Re: [PATCH v4] hwrng: core - Stop/start hwrng_fillfn() kthread before/after suspend-resume
Herbert Xu <[email protected]> Tue, 28 Jul 2026 17:35:19 +1000
| Newsgroups | org.kernel.vger.linux-crypto,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Jul 27, 2026 at 11:30:41AM +0200, Thomas Richard wrote: > > Oh yes, indeed Sashiko is right. PM notifiers are run before user space > processes freezing. > > What do you think if I lock the rng_mutex at the very beginning of > suspend and release it at the end of resume? Wouldn't this just cause a hang if said race occurred during suspension? Ideally, we want the sysfs store to either result in an error due to the ongoing suspension, or at least fail silently without affecting the suspension. Thanks, -- Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt