Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1025249ybt; Fri, 19 Jun 2020 22:02:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjiu8U2uEbcDLuUtYHQRfBBs2WXiu9/ffTcRJTlB+tBzwZw96LFmGnMf5f5yC87Qe4U2oT X-Received: by 2002:a17:906:3158:: with SMTP id e24mr6254665eje.543.1592629347542; Fri, 19 Jun 2020 22:02:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592629347; cv=none; d=google.com; s=arc-20160816; b=wlwwsMbV41W/fw4PMw/2w+7nU4Iy+cMVzpiZydclPqb8YjV02pCYWTq5gRzIBSoH0U hdEXRWNYGGrLIh8ZEK/r1bTStPi8mGXjzbBFdWMJIV+bZoYAK7CaOmUAkDWS5XhTmRuz YeoJYhQbWmj2BvcQRCNE6MMtjzuzaL+qkfpr6i8RaEYUVdbxA9qqAak0A0tuGscXf/TB Bg4flmcOiYnYBDfX/RgSe8IJmV8hzCIq0HAoSgOyk9wh4PMRjo1UP06UPnKSxlZNgMAB QJmtMh35NT5FNhOvEmXN/DFW8NiqelDlHZvFLZ6ah2pgJTwYGDm1aND6T8RqMkyQNhyY KLGA== 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-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=UedDzqZxYlPGQqSu9jcoLGBq8zCJX4btLF6O0IultGw=; b=vonwffowy2V4D++nqDMtbd07kSe7hBq8iPXD1l9vsRPTyAjjO4eWk0n1Gmk4WeFZfD qYt+Z7GV6ACMNY63Xsr/How5/D/hSF0yXadIvmlJN9WSEu/Zw1zqc5JYffavnv46Jimc g05gbUZObDVvGFsuVhwrsXfIJuPoGS/SeDSVxnAWxipT+KjrAOUoSRzReuoK6iUSssn9 +9cBrOCc8rKbMlVjTGBUJYQE/xYLFExGxphC5OMu38uL0n0vSOYwCdntI4r5kylRgkJ8 c8p3hAyZ1e/Fsbdnn0105ae186+Dy7ZPUg3sF/JXAtDP6s5iaD4g1exd8tO+Ypr+9NN1 qwXQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp9si6664378ejc.698.2020.06.19.22.02.05; Fri, 19 Jun 2020 22:02:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731341AbgFTBYE (ORCPT + 99 others); Fri, 19 Jun 2020 21:24:04 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:37028 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730293AbgFTBYD (ORCPT ); Fri, 19 Jun 2020 21:24:03 -0400 Received: from gwarestrin.arnor.me.apana.org.au ([192.168.0.7]) by fornost.hmeau.com with smtp (Exim 4.92 #5 (Debian)) id 1jmSEH-0001pd-0w; Sat, 20 Jun 2020 11:23:34 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Sat, 20 Jun 2020 11:23:33 +1000 Date: Sat, 20 Jun 2020 11:23:33 +1000 From: Herbert Xu To: Mikulas Patocka Cc: Ignat Korchagin , "David S. Miller" , Mike Snitzer , agk@redhat.com, dm-devel@redhat.com, dm-crypt@saout.de, linux-kernel@vger.kernel.org, kernel-team@cloudflare.com Subject: Re: [RFC PATCH 0/1] dm-crypt excessive overhead Message-ID: <20200620012332.GA25340@gondor.apana.org.au> References: <20200619164132.1648-1-ignat@cloudflare.com> <20200619165548.GA24779@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 19, 2020 at 02:39:39PM -0400, Mikulas Patocka wrote: > > I'm looking at this and I'd like to know why does the crypto API fail in > hard-irq context and why does it work in tasklet context. What's the exact > reason behind this? You're not supposed to do any real work in IRQ handlers. All the substantial work should be postponed to softirq context. Why do you need to do work in hard IRQ context? Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt