From patchwork Sun Jul 2 14:41:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 106851 Delivered-To: patch@linaro.org Received: by 10.182.135.102 with SMTP id pr6csp8293988obb; Sun, 2 Jul 2017 07:45:38 -0700 (PDT) X-Received: by 10.99.105.4 with SMTP id e4mr2968359pgc.228.1499006738528; Sun, 02 Jul 2017 07:45:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1499006738; cv=none; d=google.com; s=arc-20160816; b=r9vYDpHyFnucPgrFeyk8jD/NLxuEVksMgQAWa3sd4pXA1f9IdSPowsDAJzRsuVjFLx WAZohDetnXo4bV9bKF5JR0fqhFr+4qNSL22LRlLrwSVETfCITcsnJmG3QxKc4TSXZtOh Wj3ub5b/e3C4mUpUZW6KU2K8Ak8x84MguTSzlyUSoThuWfuHSk9S8Vi0dfH8ANAvyAwH Uz326RaCOjWBOwsZzY3icq3lK09ROCSWDdwxKNHddCiw24k4ddShCn7N/DVF8lIh8iZT gow9EAU918m0muTbV1q9Xge7AdMA6FBWg5LiJ4iySI/jtpFUwLZdTzhYUCwfeBIowlJd /GqQ== 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=5AjSNo7G+HzzsL4bRpWipuijDqW6otC5kx0HyxzRhtw=; b=yaGwBzJuQOKvZurjffzbuNNdEf13tfvCV2RtMh0pre1ked8W4pZ1GhOmZPSWBnwhIw qnb0ixlv8B9imvt7G5CVp5x0OAc6iRswrzbgq9LdvU7P3jEQfm+iSDVsoIeJ0isMB6UL dioU6hlq/5sOyjvp3SYxAuPRnMiqrlaPtHqmEkA7defhwFh6cN9btaPqHnmaRkFMbXPh h9rYFHy8nlAk3osoXEPy57zppux4hBpiiFt4co+knHsRPOZIimmWND+eacAHFD6OgbmA +jRDh8GBNWUbytfijzrs67o/jCJeDcD6vSlKiFX6aZRt85+GNmrrbgbag+Vje9QQpLdy BZTA== 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 p22si11118323pli.557.2017.07.02.07.45.38; Sun, 02 Jul 2017 07:45:38 -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 S1752589AbdGBOpH (ORCPT + 25 others); Sun, 2 Jul 2017 10:45:07 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:53912 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751810AbdGBOo4 (ORCPT ); Sun, 2 Jul 2017 10:44:56 -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 D3697344; Sun, 2 Jul 2017 07:44:40 -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 06C713F578; Sun, 2 Jul 2017 07:44:32 -0700 (PDT) From: Gilad Ben-Yossef To: Herbert Xu , "David S. Miller" , Jonathan Corbet , David Howells , Tom Lendacky , Gary Hook , Boris Brezillon , Arnaud Ebalard , Matthias Brugger , Alasdair Kergon , Mike Snitzer , dm-devel@redhat.com, Shaohua Li , Steve French , "Theodore Y. Ts'o" , Jaegeuk Kim , Mimi Zohar , Dmitry Kasatkin , James Morris , "Serge E. Hallyn" , 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 Subject: [PATCH v3 10/28] fscrypt: use -EIOCBQUEUED for backlog indication Date: Sun, 2 Jul 2017 17:41:52 +0300 Message-Id: <1499006535-19760-11-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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Replace -EBUSY with -EIOCBQUEUED for backlog queueing indication as part of new API. Signed-off-by: Gilad Ben-Yossef --- This patch should be squashed with the first patch in the series when applied. fs/crypto/crypto.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.1.4 diff --git a/fs/crypto/crypto.c b/fs/crypto/crypto.c index c7835df..c5c89ed 100644 --- a/fs/crypto/crypto.c +++ b/fs/crypto/crypto.c @@ -190,7 +190,7 @@ int fscrypt_do_page_crypto(const struct inode *inode, fscrypt_direction_t rw, res = crypto_skcipher_decrypt(req); else res = crypto_skcipher_encrypt(req); - if (res == -EINPROGRESS || res == -EBUSY) { + if (res == -EINPROGRESS || res == -EIOCBQUEUED) { BUG_ON(req->base.data != &ecr); wait_for_completion(&ecr.completion); res = ecr.res;