Re: [PATCH v3 3/6] crypto/realtek: hash algorithms

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Freitag, dem 06.01.2023 um 17:01 +0800 schrieb Herbert Xu:
> Markus Stockhausen <markus.stockhausen@xxxxxx> wrote:
> > 
> > +
> > +       /* Off we go */
> > +       rtcr_kick_engine(cdev);
> > +       if (rtcr_wait_for_request(cdev, dstidx))
> > +               return -EINVAL;
> 
> You cannot sleep in this function because it may be called from
> softirq context.  Instead you should use asynchronous completion.
> 
> Thanks,

Hm,

I thought that using wait_event() inside the above function should be
sufficient to handle that. Any good example of how to achieve that type
of completion?

Markus





[Index of Archives]     [Kernel]     [Gnu Classpath]     [Gnu Crypto]     [DM Crypt]     [Netfilter]     [Bugtraq]
  Powered by Linux