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)
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

Simple merge