Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2300764imm; Mon, 28 May 2018 05:41:05 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKDkRpwgFp7HNMY1zCui537k2Y7m3/2boj0is0Nh306WbwszRV2a+q+uUu/FmoLkaYGg5N2 X-Received: by 2002:a63:a702:: with SMTP id d2-v6mr5240388pgf.246.1527511265031; Mon, 28 May 2018 05:41:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527511265; cv=none; d=google.com; s=arc-20160816; b=fPFhS81K/gNnSOjh8tTaP3eWXUp8+LUiVi41BLZ4XzKzWGsui6qcBijdhKpNznVPVH QNMFbKk+g+YesbZGy6k4fPbIHTYppEqrJnb5UnMbIvZRQEhpvt9cfVq/t9DV0JXN+oGE UyXyBo8hlao+Hnbvd22ehoRW3vIiVycs9AS5R4xJzq4zL3RqgeYoQKsgtwdCjd5MhWJl rbKAB38MvLpSF7v7U7+0Z/FyyqTdk7eKbXMw4tp3jKcwfEBQsO1XP68j7BYLkCVQOLXH H2wKB+It/709pEo10GULAzCD+9a6Z2rfK0UhlGnUjootnTwUISSB6tEFwZ9fcHD4ULa0 UtfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:dkim-signature :arc-authentication-results; bh=Q7U4TX7NA3Jca32a2TEMRUbPXHwkLY+ehmQ/x9fNCxs=; b=SQSHHjOiWS2Hv8HPCNZxmScJ7rKmaTtAt2xDfsOH4mjvSI+gSY001czpsaFCN3V+P2 /2bs3sNagyY+UlKR85K3ra97a/zQixK9lkzEVXVCM6X5AsMMyGvxq1LsynQtlbFsUTrw SAjeD1HGgCDEkGTjy4y2HIKCzMThH7zczqEspWFaUUBMKvCmUloGYdN/lTGX5FbJqpZo f4n6BtajHFnmJt1K8tmGQB2AdUl661cwtzOEOTs/M51CbcpICccVmWZn3SoUOlsOOkHs PyIsG/K9PBqiLAeK+CXxRbWO5pCzLAU1W0NobsevZgVrdw43IDcJ5hjYtDlJuJ+kB1s4 aezw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=BUKujQT2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w21-v6si29499711plp.199.2018.05.28.05.40.50; Mon, 28 May 2018 05:41:05 -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; dkim=pass header.i=@synopsys.com header.s=mail header.b=BUKujQT2; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1425021AbeE1MkI (ORCPT + 99 others); Mon, 28 May 2018 08:40:08 -0400 Received: from smtprelay6.synopsys.com ([198.182.37.59]:50704 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1423499AbeE1Mj6 (ORCPT ); Mon, 28 May 2018 08:39:58 -0400 Received: from mailhost.synopsys.com (mailhost2.synopsys.com [10.13.184.66]) by smtprelay.synopsys.com (Postfix) with ESMTP id 3CC701E133E; Mon, 28 May 2018 14:39:56 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1527511196; bh=WD1Al488cTmaU2kZ2ksU4jux3N6bKmbujK0MDR97+6w=; h=Subject:From:To:CC:References:Date:In-Reply-To:From; b=BUKujQT2ruzmLvjlttMI8MPXkCFVQ3PZWeE42FVxOCVWPbIh+Vzr7HziW5LRlkmvU dY06SQn55RIe3RiDA8l7lwFFcAjvZSVXUO0iQIe9AmiiO2zWoUgfpcxO86rmKJQJnj OcvKpQfOa1D0uShOmxz+Ua0L/b/FIO+EHcrqqcJB28Q+BVXoybDImGNInYX1CgEeJR qi6VAPbYUqzsHsyiN7mLa0U7haUHrcxK+Xte3fd55qsU1/1tzdn8RC1yjY88I7RS9s guFE/j2gCVYw0jXUcLa6vgWiMXeFB5ehISm24EVMVKOjfe/grgz+1I4O4qFzepZiHG hw7X9HsmFXy7w== Received: from US01WEHTC2.internal.synopsys.com (us01wehtc2.internal.synopsys.com [10.12.239.237]) by mailhost.synopsys.com (Postfix) with ESMTP id 340203A29; Mon, 28 May 2018 05:39:55 -0700 (PDT) Received: from US01WEHTC1.internal.synopsys.com (10.12.239.236) by US01WEHTC2.internal.synopsys.com (10.12.239.237) with Microsoft SMTP Server (TLS) id 14.3.361.1; Mon, 28 May 2018 05:39:55 -0700 Received: from [10.0.2.15] (10.144.133.104) by us01wehtc1.internal.synopsys.com (10.12.239.231) with Microsoft SMTP Server (TLS) id 14.3.361.1; Mon, 28 May 2018 05:39:54 -0700 Subject: Re: [PATCH 1/7] block: Add block level changes for inline encryption From: Ladvine D Almeida To: Jens Axboe , Hannes Reinecke , "Omar Sandoval" , Johannes Thumshirn , "Sagi Grimberg" , Shaohua Li , Greg Kroah-Hartman , Ming Lei , Bart Van Assche , Keith Busch CC: , , "Manjunath M Bettegowda ; Prabu Thangamuthu ; Tejas Joglekar" References: <8cd6a622-693a-f130-708d-eae517f26c78@synopsys.com> Message-ID: <3889f625-d347-8c2a-306b-801c8caec145@synopsys.com> Date: Mon, 28 May 2018 13:39:48 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <8cd6a622-693a-f130-708d-eae517f26c78@synopsys.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.144.133.104] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The subject line is incorrect for the patch. Please discard it, I will resend with corrected subject line. On Monday 28 May 2018 01:30 PM, Ladvine D Almeida wrote: > > This patch introduces new variable under bio structure to > facilitate inline encryption. This variable is used to > associate I/O requests to crypto information. > > Signed-off-by: Ladvine D Almeida > --- > block/Kconfig | 13 +++++++++++++ > block/bio.c | 6 ++++++ > include/linux/blk_types.h | 3 +++ > 3 files changed, 22 insertions(+) > > diff --git a/block/Kconfig b/block/Kconfig > index 28ec557..a48ecec 100644 > --- a/block/Kconfig > +++ b/block/Kconfig > @@ -128,6 +128,19 @@ config BLK_DEV_THROTTLING_LOW > > Note, this is an experimental interface and could be changed someday. > > +config BLK_DEV_INLINE_ENCRYPTION > + bool "Enable support for block device inline encryption" > + default n > + help > + Enable block devices for Inline Encryption support. > + > + This option is required to support the inline encryption capability > + of the block device driver, including UFS Host Controller driver. > + When the Inline Encryption feature is enabled in the block device > + drivers, this option will be automatically enabled. > + > + If unsure, say N. > + > config BLK_CMDLINE_PARSER > bool "Block device command line partition parser" > default n > diff --git a/block/bio.c b/block/bio.c > index 0a4df92..91aecf5 100644 > --- a/block/bio.c > +++ b/block/bio.c > @@ -606,6 +606,9 @@ void __bio_clone_fast(struct bio *bio, struct bio *bio_src) > bio->bi_write_hint = bio_src->bi_write_hint; > bio->bi_iter = bio_src->bi_iter; > bio->bi_io_vec = bio_src->bi_io_vec; > +#ifdef CONFIG_BLK_DEV_INLINE_ENCRYPTION > + bio->bi_ie_private = bio_src->bi_ie_private; > +#endif > > bio_clone_blkcg_association(bio, bio_src); > } > @@ -690,6 +693,9 @@ struct bio *bio_clone_bioset(struct bio *bio_src, gfp_t gfp_mask, > bio->bi_write_hint = bio_src->bi_write_hint; > bio->bi_iter.bi_sector = bio_src->bi_iter.bi_sector; > bio->bi_iter.bi_size = bio_src->bi_iter.bi_size; > +#ifdef CONFIG_BLK_DEV_INLINE_ENCRYPTION > + bio->bi_ie_private = bio_src->bi_ie_private; > +#endif > > switch (bio_op(bio)) { > case REQ_OP_DISCARD: > diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h > index 4cb970c..11df096 100644 > --- a/include/linux/blk_types.h > +++ b/include/linux/blk_types.h > @@ -183,6 +183,9 @@ struct bio { > void *bi_cg_private; > struct bio_issue bi_issue; > #endif > +#ifdef CONFIG_BLK_DEV_INLINE_ENCRYPTION > + void *bi_ie_private; > +#endif > #endif > union { > #if defined(CONFIG_BLK_DEV_INTEGRITY) > Best Regards, Ladvine