crypto: af_alg - Disallow multiple in-flight AIO requests
[linux-2.6-microblaze.git] / include / crypto / if_alg.h
index ef8ce86..08b803a 100644 (file)
@@ -136,6 +136,7 @@ struct af_alg_async_req {
  *                     recvmsg is invoked.
  * @init:              True if metadata has been sent.
  * @len:               Length of memory allocated for this data structure.
+ * @inflight:          Non-zero when AIO requests are in flight.
  */
 struct af_alg_ctx {
        struct list_head tsgl_list;
@@ -154,6 +155,8 @@ struct af_alg_ctx {
        bool init;
 
        unsigned int len;
+
+       unsigned int inflight;
 };
 
 int af_alg_register_type(const struct af_alg_type *type);