Received: by 10.213.65.68 with SMTP id h4csp1378762imn; Mon, 19 Mar 2018 02:27:14 -0700 (PDT) X-Google-Smtp-Source: AG47ELt43BTYrl974nMJm/qkoquv68Nf1WTanNeEbSoY2owBtQsrJbyLUtf7Lbe38dyA/VsqawVW X-Received: by 10.99.109.142 with SMTP id i136mr8604023pgc.306.1521451633920; Mon, 19 Mar 2018 02:27:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521451633; cv=none; d=google.com; s=arc-20160816; b=NCXxDXJBPgm+QAb3PBALn0KLD5ZMR9daFr7/liqQMs+Kq4aZdNVo+CTDflqM77I+cW mmAHVuEkDdEayjqbLDOZoeZfxV59/5xGhksp0YY+jx/Qwmk74YB13CuL/OF7YzK7Fx7Y Bs4NGXmV63tvp2AvKfLCUMo1yzGps9iQvRvZnxh/uHBvjDEJ4fVfYgY30gBBe0yzthyD hk4oKlItkrGJUEkdC7eYwUmCPN9JoYtS9ldE3ZU1NuMeYErTYQkNSJqk1Sf4uYdUyMps BfsSbZPgedQZnX1eYhMSKdotKUWTVr/9K9K1KHsqMYrpXSt5uz3d6S01SrnSa+fxTWWr ezuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date :arc-authentication-results; bh=x7WyWEmJQQMhLG5wC5hHuPIy87++fUYfYjk+h/jrK8k=; b=PW3LbXxBpbTtKRgJfvl4c2/x3gNWLzkAKgnh8wwKhgZpnk/IEETp0cfv7X/R63yLB0 z4yV7oB1c57dTLcYm7V+M6VuOaA5I2yHgWKlbWfzCqlc38SezKbj67LaBchbZmpQU7fX bNlguhmuDXgPCUUg1k87t27WeRXFy7qQi/Syv8NK2nlZ2RjZIFE0/7IGc3hktNof8jVT N+BKZarO0b+zGzEPbdzd/+AbLK+c2wz/wYXJxSr6cqqNfdO7HkC9MQiqRvVPSHMrw1bz kcCud4zk5pOry9Dy3BohMzQXYOu8tJCd1iy46RwyaA/C+ZOPddhTcR2tkMrZ2XIJ9TMM eNNA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w4-v6si11710416plp.122.2018.03.19.02.26.59; Mon, 19 Mar 2018 02:27:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933220AbeCSJZU (ORCPT + 99 others); Mon, 19 Mar 2018 05:25:20 -0400 Received: from orcrist.hmeau.com ([104.223.48.154]:46436 "EHLO deadmen.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933021AbeCSJZK (ORCPT ); Mon, 19 Mar 2018 05:25:10 -0400 Received: from gondobar.mordor.me.apana.org.au ([192.168.128.4] helo=gondobar) by deadmen.hmeau.com with esmtp (Exim 4.84_2 #2 (Debian)) id 1exr2L-00041j-W3; Mon, 19 Mar 2018 17:25:02 +0800 Received: from herbert by gondobar with local (Exim 4.84_2) (envelope-from ) id 1exr2I-0003Nl-D1; Mon, 19 Mar 2018 17:24:58 +0800 Date: Mon, 19 Mar 2018 17:24:58 +0800 From: Herbert Xu To: Horia =?utf-8?Q?Geant=C4=83?= Cc: "David S. Miller" , Jonathan Corbet , "linux-crypto@vger.kernel.org" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] crypto: doc - clarify hash callbacks state machine Message-ID: <20180319092458.GB12302@gondor.apana.org.au> References: <20180305103945.3517-1-horia.geanta@nxp.com> <20180316151642.GA6606@gondor.apana.org.au> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 19, 2018 at 06:39:50AM +0000, Horia Geantă wrote: > > The fact that there can be multiple requests in parallel (for a given tfm) is a > different topic. > Each request object has its state in its own state machine, independent from the > other request objects. > I assume this is clear enough. My point is that all of the state associated with a request needs to be stored in the request object. If you're start storing things in the driver/hardware, then things will get ugly one way or another. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt