Re: [PATCH v6 1/5] random: Blocking API for accessing nonblocking_pool

Herbert Xu
2015-05-19T07:52:12Z

On Tue, May 19, 2015 at 09:35:15AM +0200, Stephan Mueller wrote:
>
> Thank you for the hints. I will follow your guidance.
>
> Just for my edification: why is this (rather complex sounding) approach
> preferred over a simple cancel API? Other async APIs (e.g. the AIO syscalls
> with io_cancel) have such cancel operations.
>
> Such cancel function would be as simple as:

You're right. The cancel function is indeed simpler. I can
certainly live with that.

Thanks,
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt