Message ID | 1499006535-19760-8-git-send-email-gilad@benyossef.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.182.135.102 with SMTP id pr6csp8293052obb; Sun, 2 Jul 2017 07:44:21 -0700 (PDT) X-Received: by 10.84.211.136 with SMTP id c8mr5543365pli.96.1499006661417; Sun, 02 Jul 2017 07:44:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499006661; cv=none; d=google.com; s=arc-20160816; b=DaQMvFYh6LKJfCT4JgKTrtfJxpgw7hNjMoZk8XyKfhODGY/9Eirs/kHd74fKC3ShUh noYN0L11Ycu4KaUoXtCiR9GOEoRtEnLiexiuaOUJS96jOepRLchwZ1oq2l3KzVKBLUZT GvSk3Odil77GQgLDQshCWTU71c4sK14R2P0ukx+jycNJrhlfvSxHlRel/3NtJezWZVlg IhduqsxhGWiJbwqLVxxuX+MGLOnU5rBIBK+pTWUXwYdvb+eEqB/BZvg0CrjvzzQTxuM0 ESJLetM8EgZc7zGWAOHCGPaGl75+9DkXeNQhDxWgO3zx0BjmX+a2jZaXw1QZeBsmUnFg p0sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=BBScG0KPSqUJY54N+RHRn+7/RMcqDXA9RpOSCHFFQqU=; b=o5CZl+iMCP3gOF8zjZ78fP84mc8BxuPN89L0Xn9zr5MkEKifeYuehroQTuHkwJ/z2l qP5JNqmUj9spFjGnPPy8qC+u1IyZd/NYNVLjeocfMtDzml7tE1r6Kfy6JT0KW3Ft9rj+ r0Bg2gv0FsfmVIxnnv42PZAGCA1yEcbXQYvktz6IqG+9a4brql0t1l13/dtvSEoG3eaU nDzIjaOV6tvxQ3AnZ95QLWMU8on4Hcq6elbdM/qe/nB7r5/A52HvBllHMPXbje3JCZ/b kkGWhaKkcYnMA+xjh7N7vD2n6N3tAjnuaJ/XTvPxh3YIhaG9YGYaX3okfUID7A+Rr1Db FN0g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: <linux-crypto-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w125si10188980pfb.449.2017.07.02.07.44.21; Sun, 02 Jul 2017 07:44:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-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-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752040AbdGBOoF (ORCPT <rfc822;victor.chong@linaro.org> + 1 other); Sun, 2 Jul 2017 10:44:05 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:53758 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752395AbdGBOoB (ORCPT <rfc822;linux-crypto@vger.kernel.org>); Sun, 2 Jul 2017 10:44:01 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id DCE9015B2; Sun, 2 Jul 2017 07:44:00 -0700 (PDT) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 10B523F578; Sun, 2 Jul 2017 07:43:52 -0700 (PDT) From: Gilad Ben-Yossef <gilad@benyossef.com> To: Herbert Xu <herbert@gondor.apana.org.au>, "David S. Miller" <davem@davemloft.net>, Jonathan Corbet <corbet@lwn.net>, David Howells <dhowells@redhat.com>, Tom Lendacky <thomas.lendacky@amd.com>, Gary Hook <gary.hook@amd.com>, Boris Brezillon <boris.brezillon@free-electrons.com>, Arnaud Ebalard <arno@natisbad.org>, Matthias Brugger <matthias.bgg@gmail.com>, Alasdair Kergon <agk@redhat.com>, Mike Snitzer <snitzer@redhat.com>, dm-devel@redhat.com, Shaohua Li <shli@kernel.org>, Steve French <sfrench@samba.org>, "Theodore Y. Ts'o" <tytso@mit.edu>, Jaegeuk Kim <jaegeuk@kernel.org>, Mimi Zohar <zohar@linux.vnet.ibm.com>, Dmitry Kasatkin <dmitry.kasatkin@gmail.com>, James Morris <james.l.morris@oracle.com>, "Serge E. Hallyn" <serge@hallyn.com>, linux-crypto@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, keyrings@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-raid@vger.kernel.org, linux-cifs@vger.kernel.org, samba-technical@lists.samba.org, linux-fscrypt@vger.kernel.org, linux-ima-devel@lists.sourceforge.net, linux-ima-user@lists.sourceforge.net, linux-security-module@vger.kernel.org Cc: Ofir Drang <ofir.drang@arm.com> Subject: [PATCH v3 07/28] crypto: qce: use -EIOCBQUEUED for backlog indication Date: Sun, 2 Jul 2017 17:41:49 +0300 Message-Id: <1499006535-19760-8-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1499006535-19760-1-git-send-email-gilad@benyossef.com> References: <1499006535-19760-1-git-send-email-gilad@benyossef.com> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: <linux-crypto.vger.kernel.org> X-Mailing-List: linux-crypto@vger.kernel.org |
Series |
simplify crypto wait for async op
|
expand
|
diff --git a/drivers/crypto/qce/sha.c b/drivers/crypto/qce/sha.c index 47e114a..a21d2a1c 100644 --- a/drivers/crypto/qce/sha.c +++ b/drivers/crypto/qce/sha.c @@ -421,7 +421,7 @@ static int qce_ahash_hmac_setkey(struct crypto_ahash *tfm, const u8 *key, ahash_request_set_crypt(req, &sg, ctx->authkey, keylen); ret = crypto_ahash_digest(req); - if (ret == -EINPROGRESS || ret == -EBUSY) { + if (ret == -EINPROGRESS || ret == -EIOCBQUEUED) { ret = wait_for_completion_interruptible(&result.completion); if (!ret) ret = result.error;
Replace -EBUSY with -EIOCBQUEUED for backlog queueing indication as part of new API. Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com> --- This patch should be squashed with the first patch in the series when applied. drivers/crypto/qce/sha.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.1.4