Linux Device Mapper development
 help / color / mirror / Atom feed
From: Eric Biggers <ebiggers@kernel.org>
To: Xu Zaibo <xuzaibo@huawei.com>
Cc: forest.zhouchang@huawei.com, dm-devel@redhat.com,
	linux-crypto@vger.kernel.org, zhangwei375@huawei.com
Subject: Re: [Question] Confusion of the meaning for encrypto API's return value
Date: Mon, 16 Dec 2019 09:32:17 -0800	[thread overview]
Message-ID: <20191216173217.GD139479@gmail.com> (raw)
In-Reply-To: <7a4edfcb-c140-bf1b-c674-dbb1b30f9b07@huawei.com>

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

      reply	other threads:[~2019-12-16 17:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-16  7:18 [Question] Confusion of the meaning for encrypto API's return value Xu Zaibo
2019-12-16 17:32 ` Eric Biggers [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20191216173217.GD139479@gmail.com \
    --to=ebiggers@kernel.org \
    --cc=dm-devel@redhat.com \
    --cc=forest.zhouchang@huawei.com \
    --cc=linux-crypto@vger.kernel.org \
    --cc=xuzaibo@huawei.com \
    --cc=zhangwei375@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox