Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1266344imu; Thu, 13 Dec 2018 12:06:36 -0800 (PST) X-Google-Smtp-Source: AFSGD/VXd+Q+dw8mx9ct0bF76ux6I2EZ9IX8igTK73cI+9YFcySQEySxEcFCuY4ud//aTNdvHmap X-Received: by 2002:a63:2222:: with SMTP id i34mr146349pgi.83.1544731595910; Thu, 13 Dec 2018 12:06:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544731595; cv=none; d=google.com; s=arc-20160816; b=t98eBjuUp/sJV+/7YxZ17UF6716NhBLJySKElGfR5NtbX9wRC2NNiwzpD7uIDKCgVu s8YrtE1arJXQhi10kGXVG+Hf/VsDVqyCsd4vSYsgXEocMXcGEFhn37FFJGrT6IyY50/G QIF0aA9lhLsFGid9Ku9d6FQSM5hRrpaSziNI0kBeSPy51ZL2Ov7dr2/DgzGb4RJf5hSM 5M1Oe83efzRZXKCnED0HfGUzt2Ihy14qrJAw8MBoAQehZe8kEaNx0YhWg/DeF7kx7hlH LZ1pYaSIdosiC3gs9sMx1WWYcI46VZZji4cOtH2aoqsJxslqxKIZHysUdVr8bHapAn1i ASEQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:references:message-id:date :thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=/3EuU4GtJx3m/O9kzVCKyPTlPQcUHqWvPObOVWItNG8=; b=Td01v58NlTFJb0GQWWxp+eQ/dmVeve01uwJoaQa+H72Rln/y3jfyhmXScd5Doqwf9Q pRkFotpQU2ShaAPo7Sbe3zl0nmMwBmYDdsVxL/k/bVrrUW0LioUGbEpHwJohB0omlLhQ 0elguLZ5etat69/ofzn0Qa0CVvCqPzX+0mrb2BgqP3BCC7NpS9dQC0s/MCt17c5elATa D77S5EJpuq7pu7JvakugJ6HtxJzgAFW0gywSTJfh47VSMf9RGNiSDWTqI2LehZC0olfS Xsix432fBdy1ZUjg021b9k9gOBtc7GJpYarieY4OA5qtSvuxJ5DR0a7mIi/2j+WR302S p2ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@synopsys.com header.s=mail header.b=dXaeKEIt; 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 g31si2194757pld.358.2018.12.13.12.06.20; Thu, 13 Dec 2018 12:06:35 -0800 (PST) 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=dXaeKEIt; 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 S1726630AbeLMUFP (ORCPT + 99 others); Thu, 13 Dec 2018 15:05:15 -0500 Received: from us01smtprelay-2.synopsys.com ([198.182.47.9]:48314 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726355AbeLMUFP (ORCPT ); Thu, 13 Dec 2018 15:05:15 -0500 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id E6B4F24E2169; Thu, 13 Dec 2018 12:05:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=synopsys.com; s=mail; t=1544731514; bh=/3EuU4GtJx3m/O9kzVCKyPTlPQcUHqWvPObOVWItNG8=; h=From:To:CC:Subject:Date:References:From; b=dXaeKEItH/0xM/LQl3sCR6rrg5R29dbeVcm5jyEBUREJDkHV+6nNSNSN77R13bQw5 O3oInHMYvOLkO1GaHpbKYdFxE4L6AMJ+yj+ioRThYl4Fw49Lk3CngNMEBwosLYzTzj BeB4kHxxjbB6QBsx/ct6vcCMMOqKqARCVhCxjHOK96JbvcOdZfPL4huDkrps6qS35V BIM4bFbsU5iWGibgk6yfuWgY5IkVUrEC3DwWk3TQXVpaq9S6jynryjwrEzVUBSTSK6 MhT2WO3XE2l0bW/MNGXKoQ3Icrccgtk2JMP3lYtHsnr3ZIBfEwy5YBkZUoxzRk9E7o oBRYsxQuZvs1w== Received: from US01WEHTC2.internal.synopsys.com (us01wehtc2-vip.internal.synopsys.com [10.12.239.238]) by mailhost.synopsys.com (Postfix) with ESMTP id 88E6A5A2B; Thu, 13 Dec 2018 12:05:13 -0800 (PST) Received: from IN01WEHTCB.internal.synopsys.com (10.144.199.106) by US01WEHTC2.internal.synopsys.com (10.12.239.237) with Microsoft SMTP Server (TLS) id 14.3.408.0; Thu, 13 Dec 2018 12:04:57 -0800 Received: from IN01WEMBXA.internal.synopsys.com ([fe80::ed6f:22d3:d35:4833]) by IN01WEHTCB.internal.synopsys.com ([::1]) with mapi id 14.03.0415.000; Fri, 14 Dec 2018 01:34:54 +0530 From: Ladvine D Almeida To: Jens Axboe , Ladvine D Almeida , Parshuram Raju Thombare , Eric Biggers CC: "vinholikatti@gmail.com" , "jejb@linux.vnet.ibm.com" , "martin.petersen@oracle.com" , "mchehab+samsung@kernel.org" , "gregkh@linuxfoundation.org" , "davem@davemloft.net" , "akpm@linux-foundation.org" , "nicolas.ferre@microchip.com" , "arnd@arndb.de" , "linux-kernel@vger.kernel.org" , "linux-block@vger.kernel.org" , "linux-scsi@vger.kernel.org" , Alan Douglas , Janek Kotas , Rafal Ciepiela , AnilKumar Chimata , "Satya Tangirala" , Paul Crowley , Manjunath M Bettegowda , Tejas Joglekar , Joao Pinto , "linux-crypto@vger.kernel.org" Subject: Re: [PATCH 2/2] scsi: ufs: add inline crypto support to UFS HCD Thread-Topic: [PATCH 2/2] scsi: ufs: add inline crypto support to UFS HCD Thread-Index: AQHUkX263UDDRFD5F0ekGH+h/ea8Aw== Date: Thu, 13 Dec 2018 20:04:54 +0000 Message-ID: References: <20181211095027.GA3316@lvlogina.cadence.com> <20181211181647.GC221175@gmail.com> Accept-Language: en-US, en-IN Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.12.239.236] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 13/12/18 7:42 PM, Jens Axboe wrote:=0A= > On 12/13/18 12:39 PM, Ladvine D Almeida wrote:=0A= >> Suggest to take a look into the article https://urldefense.proofpoint.co= m/v2/url?u=3Dhttps-3A__lwn.net_Articles_717754&d=3DDwICaQ&c=3DDPL6_X_6JkXFx= 7AXWqB0tg&r=3Dz00zRD9ARrwHpe-XSl1OtUp1uNKGYoXI1G2DhOaDDBI&m=3D-pGzV3wdSje33= 7vKOYoYB6NgU_DGDmQvfQ9egLDRYNQ&s=3Dc4FXsrwD0BLAjE4UC47R2ngLnx_DP5jiOr0dtZ7t= Gsw&e=3D=0A= >> My real concern is how to achieve it without any modifications to the=0A= >> bio.(because key slot information has to finally reach the target block= =0A= >> device)=0A= > =0A= > Guys, you both need to edit when you reply, wading through 650 lines of= =0A= > text to get to this...=0A= Jens, Thanks for your reply. I will take care of it next time onwards. :-)= =0A= =0A= > =0A= > You obviously can't modify the bio if you don't own it, but you could=0A= > clone it and then you have storage in ->bi_private.=0A= > =0A= =0A= I agree. I can clone the bio in the crypto target and use bi_private.=0A= But, when i finally submit the bio and it reaches the target block=0A= device, the information stored in bi_private is lost.=0A= =0A= Regards,=0A= Ladvine=0A=