[dm-devel] [Question] Confusion of the meaning for encrypto API's return value
Eric Biggers
ebiggers at kernel.org
Mon Dec 16 17:32:17 UTC 2019
On Mon, Dec 16, 2019 at 03:18:54PM +0800, Xu Zaibo wrote:
> Hi,
>
> I get a confusion.
>
> According to my understanding, That 'crypto_skcipher_encrypt(request)'
> returns '-EBUSY '
>
> means the caller should call this API again with the request. However, as my
> knowledge in
>
> 'dm-crypt', this means the caller need not call this request again, because
> 'dm-crypt' thinks
>
> that the driver of 'crypto_skcipher_encrypt' will send the request again as
> it is not busy.
>
> So, my question is: what's the meaning of
> 'crypto_skcipher_encrypt(request)' returning '-EBUSY '?
>
>
> Cheers,
>
-EBUSY means that the request was put on the backlog. It will still be
completed eventually.
- Eric
More information about the dm-devel
mailing list