Return-Path: 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 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 Date: Thu, 13 Dec 2018 20:04:54 +0000 Message-ID: References: <20181211095027.GA3316@lvlogina.cadence.com> <20181211181647.GC221175@gmail.com> Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Sender: linux-crypto-owner@vger.kernel.org List-ID: 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=