From: "Martin K. Petersen" Subject: Re: [PATCH 2/5] scsi_debug: factor out copying PI from dif_storep to prot_sglist Date: Fri, 20 Sep 2013 18:20:56 -0400 Message-ID: References: <1379507248-15929-1-git-send-email-akinobu.mita@gmail.com> <1379507248-15929-3-git-send-email-akinobu.mita@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from aserp1040.oracle.com ([141.146.126.69]:28929 "EHLO aserp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754508Ab3ITWVF (ORCPT ); Fri, 20 Sep 2013 18:21:05 -0400 In-Reply-To: <1379507248-15929-3-git-send-email-akinobu.mita@gmail.com> (Akinobu Mita's message of "Wed, 18 Sep 2013 21:27:25 +0900") Sender: linux-scsi-owner@vger.kernel.org List-Id: linux-scsi@vger.kernel.org To: Akinobu Mita Cc: linux-scsi@vger.kernel.org, "James E.J. Bottomley" , Douglas Gilbert , "Martin K. Petersen" >>>>> "Akinobu" == Akinobu Mita writes: Akinobu> If data integrity support is enabled, prot_verify_read() is Akinobu> called in response to READ commands and it verifies protection Akinobu> info from dif_storep by comparing against fake_storep, and Akinobu> copies protection info to prot_sglist. Akinobu> This factors out the portion of copying protection info into a Akinobu> separate function. It will also be reused in the next change Akinobu> after supporting the opposite direction (copying prot_sglist to Akinobu> dif_storep). Acked-by: Martin K. Petersen -- Martin K. Petersen Oracle Linux Engineering