Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp13965354pxu; Mon, 4 Jan 2021 09:09:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJwZ7wNAKXVw4oUx/5i0Bmuwr+fBeOSl0lhzpxLBPHsqMYaOFmoidCZyfZYxxX6gVRxLoA4M X-Received: by 2002:a50:8387:: with SMTP id 7mr69046904edi.131.1609780184903; Mon, 04 Jan 2021 09:09:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609780184; cv=none; d=google.com; s=arc-20160816; b=VDoYiHNDdW8lU7VSfoAYJ3ioQJuqmUgsNiBXc4Ky/NtskWSN9oQ50eTmVKWTSoLY/0 FND9k/g/E/0ZATUTMxF4UXXzyrUXtwunHQoAsZJbh6fuc1BfL4j8qXNy9lUvvhBiUzUt UFBLWepErurSyLHh+gnfiEXNCZ5hKfQc+nv3ooIB0FU7GskRfTZgKHXvGRjnzYS791JF FI/wthIo7T43TUvfoodsHcm7vrJgqp+4/zMfhIcKuy9wQiDlsPEjwNeHjYSJRJPQ1HW4 3KT6XinR7DjeSoP4NafrokxdIjnd9tXJB7qWTXNIA0UBUAR7KrkoKSnUJIVuuXwKyYWG eTdQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=9h3z5LlCHcMQVpKavCUMhYApeAZMVwa2YCWREDiwFCo=; b=qSKl2fpyr5QMBA3s4xfGIaPt0vmCas1zgFFNNKxVCDyIzDkUYabKZkeQeIp43NA+xz 1ssPdsUX7S7jxjkIDoSUBKFgFEVnYDYv1BX1Ocmx0Ib+QTtz263ZUKugUYzrxS91DLGR E3biM0RpljkJxDdfmeyNdFB8WtVn4FpGtn/3u2ymOYlttOibuY+mytuoaz4/xaWh2O4X q00304nlfhu9vpItBT4xSWANIdEl9Sy94+KD/kb/Ml+V1rx8mIYDBp8JeVMkfjNMNdOr 1GaQq0l88vccE+gK/k7HyCYezGniFNeGU1AH7VoVXACSlWotNEzCqmOmzi92/Q+N3ozC L1Dw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=K02HjKrF; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 33si31519955edq.375.2021.01.04.09.09.20; Mon, 04 Jan 2021 09:09:44 -0800 (PST) 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=@redhat.com header.s=mimecast20190719 header.b=K02HjKrF; 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=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726308AbhADRGk (ORCPT + 99 others); Mon, 4 Jan 2021 12:06:40 -0500 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:20181 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726198AbhADRGj (ORCPT ); Mon, 4 Jan 2021 12:06:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1609779913; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=9h3z5LlCHcMQVpKavCUMhYApeAZMVwa2YCWREDiwFCo=; b=K02HjKrFw3Hg2xk5XPh+U8vVZAHwqhXjrpflzz6KPFNQWomqghqL9dv3vRClGLJfnDZUcu PTROQWei91+VZanqmTtiDKc924fLEC2iDNsXDS8X07RsvnV2Ifd2UiZn9086iRgYUfZwd9 ZnEHcM9O1F4ZZoSdP8z1+sGIypANfp0= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-20-3mz7Dk5uO--KELV8SwwKQQ-1; Mon, 04 Jan 2021 12:05:11 -0500 X-MC-Unique: 3mz7Dk5uO--KELV8SwwKQQ-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 2B75F19251A0; Mon, 4 Jan 2021 17:05:09 +0000 (UTC) Received: from file01.intranet.prod.int.rdu2.redhat.com (file01.intranet.prod.int.rdu2.redhat.com [10.11.5.7]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 6A3595D751; Mon, 4 Jan 2021 17:05:02 +0000 (UTC) Received: from file01.intranet.prod.int.rdu2.redhat.com (localhost [127.0.0.1]) by file01.intranet.prod.int.rdu2.redhat.com (8.14.4/8.14.4) with ESMTP id 104H51GA002921; Mon, 4 Jan 2021 12:05:01 -0500 Received: from localhost (mpatocka@localhost) by file01.intranet.prod.int.rdu2.redhat.com (8.14.4/8.14.4/Submit) with ESMTP id 104H4xUR002896; Mon, 4 Jan 2021 12:04:59 -0500 X-Authentication-Warning: file01.intranet.prod.int.rdu2.redhat.com: mpatocka owned process doing -bs Date: Mon, 4 Jan 2021 12:04:59 -0500 (EST) From: Mikulas Patocka X-X-Sender: mpatocka@file01.intranet.prod.int.rdu2.redhat.com To: Ignat Korchagin cc: agk@redhat.com, snitzer@redhat.com, dm-devel@redhat.com, dm-crypt@saout.de, linux-kernel@vger.kernel.org, ebiggers@kernel.org, Damien.LeMoal@wdc.com, herbert@gondor.apana.org.au, kernel-team@cloudflare.com, nobuto.murata@canonical.com, clm@fb.com, josef@toxicpanda.com, dsterba@suse.com, linux-btrfs@vger.kernel.org, mail@maciej.szmigiero.name Subject: Re: [PATCH v3 0/2] dm crypt: some fixes to support dm-crypt running in softirq context In-Reply-To: <20210104145948.1857-1-ignat@cloudflare.com> Message-ID: References: <20210104145948.1857-1-ignat@cloudflare.com> User-Agent: Alpine 2.02 (LRH 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 4 Jan 2021, Ignat Korchagin wrote: > Changes from v1: > * 0001: handle memory allocation failure for GFP_ATOMIC > > Changes from v2: > * reordered patches > * 0002: crypt_convert will be retried from a workqueue, when a crypto request > allocation fails with GFP_ATOMIC instead of just returning an IO error to > the user > > Ignat Korchagin (2): > dm crypt: do not wait for backlogged crypto request completion in > softirq > dm crypt: use GFP_ATOMIC when allocating crypto requests from softirq > > drivers/md/dm-crypt.c | 138 +++++++++++++++++++++++++++++++++++++----- > 1 file changed, 123 insertions(+), 15 deletions(-) > > -- > 2.20.1 > Acked-by: Mikulas Patocka