Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp1557006ybt; Sat, 20 Jun 2020 14:06:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxYgF+wO0DkPEWqTvqgCTPJDz6Fxzq3+fB3NTywVFEPAVnWSgtZoOtgbaa3jd9aMf5PTzLZ X-Received: by 2002:a17:906:6a0a:: with SMTP id o10mr9276219ejr.192.1592687182431; Sat, 20 Jun 2020 14:06:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592687182; cv=none; d=google.com; s=arc-20160816; b=JBQzbh302I70y2NCs6pbirQziYgxhkx9jqb4cr9k702mF5jOnSbqCopvBwQWHhVx2x JqFq9OOMkcscFgIBNgz/6xu+3h5XP9RGSC8XROFYjgWNa9xbCCIMHFTf2OcTNtvqPXuK E2nbP7DTRr1uvrKTsc6OreQDD/3U9B0PtBOQRkStBVYF/Hk1jmhynOumajdEnV2UkWU7 S5qQEPbeW5VRgDJkIcvjibw1DD9gqgHdV0PJKNtgqz866ndUes4PgmUVe5IkMf7Jfzhs msw3/sRNiXxWTZKUbpL++/KQzbRXFJTwoxTqs3gb3NKPak3MHAY/7et24HLdzpYBqp1Q caug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=UK/b7D+TDaCrVMB4MYWyMIM/SEpzN9NfRE/O/U09lk0=; b=cP8bwCOSQjjlD5cYYeMcI5oQdwyXj20qlnjQXzdMq9kNdDqRS1HUtxtd0IeJiDSwne Bg48kir320eymv1f2ZsDpALa1vbzu6R3ydpYKmruX0+xyJyGLlDeSXF9yFf2U9oGuKOJ Na3p/avCOD1A/8909Wzb6XUAHPHDOdLTPvnQby+BAmUDgvrVy68GgFng4lbSeU/jnbDc oZ8bk/CbQaDDAVwmY3Aga5Mi/Mu1w4E3bznoiZ6kAz5R343TWupZWI1HltN7IP2WuF48 CzGpO4pnFfVcyIzOdivHASOtrCoL/eQ+yocHzU2Z4jBpXgxwmUcJrLBDVNlCF6v6aAFn Z9Eg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cloudflare.com header.s=google header.b=IUS6AQle; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cloudflare.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bt8si6709252edb.257.2020.06.20.14.06.00; Sat, 20 Jun 2020 14:06:22 -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; dkim=pass header.i=@cloudflare.com header.s=google header.b=IUS6AQle; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=cloudflare.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728882AbgFTVDt (ORCPT + 99 others); Sat, 20 Jun 2020 17:03:49 -0400 Received: from mail-wr1-f66.google.com ([209.85.221.66]:34650 "EHLO mail-wr1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728191AbgFTVDs (ORCPT ); Sat, 20 Jun 2020 17:03:48 -0400 Received: by mail-wr1-f66.google.com with SMTP id v3so5502776wrc.1 for ; Sat, 20 Jun 2020 14:03:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cloudflare.com; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=UK/b7D+TDaCrVMB4MYWyMIM/SEpzN9NfRE/O/U09lk0=; b=IUS6AQleG8J86Jl3eO1WPPrNKiihvwPmbT3TAVkX9ztHwed8GfqxXsyfuSTcCJbcVi em2pYl0DD42GoU5DiOJLoORK26wRmHBurp/rnSfBzn6SQgdQftiWgIMC7+fXP2wdFLJ2 /2sJha/Sxg4TQ1KPUU1c3/Wmk8OhuLmViyI5o= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=UK/b7D+TDaCrVMB4MYWyMIM/SEpzN9NfRE/O/U09lk0=; b=roi/cNknfgttzb7QE8pyXlP/fDcFhJnLSvg7DOazlca03Qq0UQwqqbjAlvy68QnSzp Oj10twPIBqu7d7xgCjuyawjECu95yDDDjLBXmru7kSCZFtF1l+TGG29vk5JzTfi5YIcl S7ji9W7mMKDXvWbAWoOwDJj25H2nwu+OGxY8ZUUTpJQDc97Ntx3rTg9P37TSXL9ItG2B qmjAYSXfYU2aSETb1oa8cjOd0MfKeJF+y8Ziehp5M8WNTZpORu6xCCJG6TaDa2oCwJLi xEfv5TXoVgLt0juK4j6npCrx3AGWiDqTPXa8qszZAU/rA3o/YgV7kU9bZINU3CG/UT7B EQ2g== X-Gm-Message-State: AOAM533iY1uWuLDE5NthLiahIAfo+M3u78r7d/U53/JIXTMMR5M+cYB9 0ex2V0Yf3dZeD9OCjQANFyWG9ugJrYDMhSQU1Qww/g== X-Received: by 2002:a5d:470b:: with SMTP id y11mr1563972wrq.101.1592686966821; Sat, 20 Jun 2020 14:02:46 -0700 (PDT) MIME-Version: 1.0 References: <20200619164132.1648-1-ignat@cloudflare.com> <20200619165548.GA24779@redhat.com> <20200620012332.GA25340@gondor.apana.org.au> In-Reply-To: From: Ignat Korchagin Date: Sat, 20 Jun 2020 22:02:36 +0100 Message-ID: Subject: Re: [RFC PATCH 0/1] dm-crypt excessive overhead To: Mikulas Patocka Cc: Herbert Xu , "David S. Miller" , Mike Snitzer , agk@redhat.com, dm-devel@redhat.com, dm-crypt@saout.de, linux-kernel , kernel-team Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Yes, it should. I got one when I was testing the first iteration (without the tasklet) of the patch on an NVME? disk. On Sat, Jun 20, 2020 at 8:36 PM Mikulas Patocka wrote: > > > > On Sat, 20 Jun 2020, Herbert Xu wrote: > > > 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. > > I see. > > BTW - should it also warn if it is running in a process context with > interrupts disabled? > > Mikulas > > > 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 > > >