Message ID | cover.1741842470.git.herbert@gondor.apana.org.au |
---|---|
Headers | show |
Series | crypto: Hash scatterwalk fixes | expand |
On Thu, Mar 13, 2025 at 01:14:53PM +0800, Herbert Xu wrote: > * Context: > - * May sleep if !SG_MITER_ATOMIC. > + * May sleep if !SG_MITER_ATOMIC && !SG_MITER_LOCAL. This is incorrect. kmap_local_page() does not disable preemption. - Eric
On Sat, Mar 15, 2025 at 08:32:47PM -0700, Eric Biggers wrote: > On Thu, Mar 13, 2025 at 01:14:53PM +0800, Herbert Xu wrote: > > * Context: > > - * May sleep if !SG_MITER_ATOMIC. > > + * May sleep if !SG_MITER_ATOMIC && !SG_MITER_LOCAL. > > This is incorrect. kmap_local_page() does not disable preemption. I thought it was talking about the function itself, i.e., that kmap may sleep. But on a second look yes this is ambiguous and it could be made clearer. Cheers,