From: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
To: Herbert Xu <herbert@gondor.apana.org.au>, linux-crypto@vger.kernel.org
Cc: Sebastian Siewior <linux-crypto@ml.breakpoint.cc>
Subject: Re: [1/1 take 2] HIFN: preliminary HIFN 795x driver for new async cryptoapi.
Date: Fri, 22 Jun 2007 16:39:02 +0400 [thread overview]
Message-ID: <20070622123902.GA7194@2ka.mipt.ru> (raw)
In-Reply-To: <20070622122948.GA28000@Chamillionaire.breakpoint.cc>
On Fri, Jun 22, 2007 at 02:29:48PM +0200, Sebastian Siewior (linux-crypto@ml.breakpoint.cc) wrote:
> * Evgeniy Polyakov | 2007-06-22 15:57:26 [+0400]:
>
> >On Fri, Jun 22, 2007 at 03:28:44PM +0800, Herbert Xu (herbert@gondor.apana.org.au) wrote:
> >> > + * Actually I need to think about how to handle the case, when queue is full.
> >> > + * So far error (-EINVAL) is returned.
> >> > + */
> >>
> >> OK you need to provide a software queue here. Since you already
> >> have a hardware queue, you may choose to have a queue with a
> >> (advisory) maximum length of zero. However, a queue is still
> >> necessary since requests with the MAY_BACKLOG flag must never
> >> be discarded.
> >>
> >> This is (or will be) used by users such as dm-crypt that must be
> >> able to add at least one request but can throttle themselves
> >> afterwards .
> >
> >What will prevent crypto user from filling that queue with crypto
> >requests more and more when hardware is not capable to work with such
> >rate?
>
> Nothing, the hw signalizes with -EBUSY such a state and the crypto user
> has to slow down.
> If the crypto user continues such a behavior, the system will go OOM
> (this is atleast my understanding).
That is what is returned right now - -EBUSY if queue is full and -EINVAL
if there are some more serious errors, but there is no way dm-crypt will
recover from error.
--
Evgeniy Polyakov
prev parent reply other threads:[~2007-06-22 12:39 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-04 13:42 [1/1 take 2] HIFN: preliminary HIFN 795x driver for new async cryptoapi Evgeniy Polyakov
2007-06-05 12:56 ` Sebastian Siewior
2007-06-05 13:07 ` Evgeniy Polyakov
2007-06-05 15:02 ` Evgeniy Polyakov
2007-06-22 7:34 ` Herbert Xu
2007-06-22 11:58 ` Evgeniy Polyakov
2007-06-22 12:37 ` Herbert Xu
2007-06-22 13:32 ` Evgeniy Polyakov
2007-06-09 5:02 ` Herbert Xu
2007-06-22 7:28 ` Herbert Xu
2007-06-22 11:57 ` Evgeniy Polyakov
2007-06-22 12:29 ` Sebastian Siewior
2007-06-22 12:36 ` Herbert Xu
2007-06-22 12:39 ` Evgeniy Polyakov [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=20070622123902.GA7194@2ka.mipt.ru \
--to=johnpol@2ka.mipt.ru \
--cc=herbert@gondor.apana.org.au \
--cc=linux-crypto@ml.breakpoint.cc \
--cc=linux-crypto@vger.kernel.org \
/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