From mboxrd@z Thu Jan 1 00:00:00 1970 From: sagi grimberg Subject: Re: [PATCH 00/14] target: Initial support for DIF Type1+Type3 emulation Date: Thu, 16 Jan 2014 09:45:48 +0200 Message-ID: <52D78E2C.70704@mellanox.com> References: <1389212157-14540-1-git-send-email-nab@daterainc.com> <52D6CD70.20706@mellanox.com> <1389822920.5567.560.camel@haakon3.risingtidesystems.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org To: "Martin K. Petersen" , "Nicholas A. Bellinger" Cc: "Nicholas A. Bellinger" , target-devel , linux-scsi , linux-kernel , Christoph Hellwig , Hannes Reinecke , Or Gerlitz List-Id: linux-scsi@vger.kernel.org On 1/16/2014 3:42 AM, Martin K. Petersen wrote: >>>>>> "nab" == Nicholas A Bellinger writes: > nab> The issue is that existing fs/bio-integrity.c code always assumes > nab> client/initiator mode, in that it will attempt to > nab> bio_integrity_generate() protection information in the submit_bio > nab> WRITE path, and bio_integrity_verify() of protection information in > nab> the bio_endio READ completion path. > > Only if the submit_bio() caller hasn't attached protection information > already. If you submit a bio with a bip already attached the block layer > will not generate/verify. > Yes, that was my understanding as well. Thanks Martin, Sagi.