]> git.karo-electronics.de Git - karo-tx-linux.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)
commita596999b7ddfe7fc5b7b8adf9536ab1c39cb12d2
tree319147372157dc5edbca12edfdd659a999a036ad
parent66db37391dad834a4f739984eec81af27a68b09c
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