Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp134601ybt; Tue, 23 Jun 2020 17:27:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx47yAFt3j7CvAk7Yo3ET2A8plWMOHa9VJbGxMi6A4WieQbLJMZ88lZsJxtD1wj9vtA5wnx X-Received: by 2002:a17:906:95d6:: with SMTP id n22mr22584604ejy.138.1592958455937; Tue, 23 Jun 2020 17:27:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592958455; cv=none; d=google.com; s=arc-20160816; b=hxuIGeKlHumlqlJJi31AuNqHTmuVx+K56xtrlaqjPDzeJFXfkZ64DUkn787d9sTTCG 6FZonMFMRV4zQAcjqx4WqaeUU3y49fXsXHJ26vHCp0ZpXdZVCoZuMrfOGPeiHgvCD4s6 aSjyqbe+3wtzg/Me0XEGIVp5mzF+6zd7T08u1OrcvyTaFGYaLEmNkUICfQCxGx8xJwVN Gt3mOluwKNOX1uGd7z936BKLI3aAd/Q3EW11r25DcKSts0xl7QclplQ5zGS44/ySOCS+ 29OtA3o07cvXc3rRve/YdnLL64BtgVgQKL6F8GabmWvKCuMRy/AB42/SsU15JakO8R/f Lpbg== 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=1TSDfUgZwYymVHko9lUYnj3JXkBlKfQA6TYp6yxArCs=; b=spctQvJ36Fsw3MvLmTXHaGPGZV0qzGTmDNKIyOS/7NoV6/E47uGQr1tgxzWBMxXaU7 quj266I/BcMv7eIVSmrMKswjjimmedu6coowwJnhVWjxIbqD6MMKuktWj+r9VQFXml1N YdAleSW0297JFP08zJZhiOeI+sCr0cQguZb5i+QJ+tCM47B1RCd2CgeRaKO9+lo3FukG c8voiC1fKDxU0TSAK1Aw6BV8wEmEeELKcTJJm/0wKqNIEvrOaCF9eTWEHPud+X5JY+dv sNe4IB8AHM/Do3TjzKTJ202PKPkCZ1NQIYuQkpgcxesiQQrJzYTx8Q2hfYEBGkFu9wqi ub/Q== 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 dp1si17529321ejc.505.2020.06.23.17.27.12; Tue, 23 Jun 2020 17:27:35 -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 S2388169AbgFXAXT (ORCPT + 99 others); Tue, 23 Jun 2020 20:23:19 -0400 Received: from helcar.hmeau.com ([216.24.177.18]:47128 "EHLO fornost.hmeau.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388058AbgFXAXS (ORCPT ); Tue, 23 Jun 2020 20:23:18 -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 1jntBt-0007UK-4q; Wed, 24 Jun 2020 10:23:02 +1000 Received: by gwarestrin.arnor.me.apana.org.au (sSMTP sendmail emulation); Wed, 24 Jun 2020 10:23:01 +1000 Date: Wed, 24 Jun 2020 10:23:01 +1000 From: Herbert Xu To: Ignat Korchagin Cc: Mike Snitzer , Mikulas Patocka , "David S. Miller" , agk@redhat.com, dm-devel@redhat.com, dm-crypt@saout.de, linux-kernel , kernel-team Subject: Re: [RFC PATCH 0/1] dm-crypt excessive overhead Message-ID: <20200624002301.GB12716@gondor.apana.org.au> References: <20200619164132.1648-1-ignat@cloudflare.com> <20200619165548.GA24779@redhat.com> <20200620012332.GA25340@gondor.apana.org.au> <20200623153352.GA19783@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 Tue, Jun 23, 2020 at 05:24:39PM +0100, Ignat Korchagin wrote: > > I may be misunderstanding the terminology, but tasklets execute in > soft IRQ, don't they? What we care about is to execute the decryption > as fast as possible, but we can't do it in a hard IRQ context (that > is, the interrupt context where other interrupts are disabled). As far > as I understand, tasklets are executed right after the hard IRQ > context, but with interrupts enabled - which is the first safe-ish > place to do more lengthy processing without the risk of missing an > interrupt. Yes you are absolutely right. In general high-performance work should be carried out in softirq context. That's how the networking stack works for example. Cheers, -- Email: Herbert Xu Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt