]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: algif - change algif_skcipher to be asynchronous
authorTadeusz Struk <tadeusz.struk@intel.com>
Thu, 19 Mar 2015 19:31:40 +0000 (12:31 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Mar 2015 20:41:37 +0000 (16:41 -0400)
commit3919f9af1ff963575cd9d6f5c008e7823778f30f
tree319147372157dc5edbca12edfdd659a999a036ad
parentda3d5a9d8924c1d8b2b4d1f2f0c6042c44b82635
crypto: algif - change algif_skcipher to be asynchronous

The way the algif_skcipher works currently is that on sendmsg/sendpage it
builds an sgl for the input data and then on read/recvmsg it sends the job
for encryption putting the user to sleep till the data is processed.
This way it can only handle one job at a given time.
This patch changes it to be asynchronous by adding AIO support.

Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
crypto/algif_skcipher.c