From: Akinobu Mita Subject: [PATCH 0/3] introduce sg_pcopy_from_buffer() and sg_pcopy_to_buffer() Date: Thu, 6 Jun 2013 21:52:55 +0900 Message-ID: <1370523178-5437-1-git-send-email-akinobu.mita@gmail.com> Cc: Akinobu Mita , Tejun Heo , Imre Deak , Herbert Xu , "David S. Miller" , linux-crypto@vger.kernel.org, "James E.J. Bottomley" , Douglas Gilbert , linux-scsi@vger.kernel.org To: linux-kernel@vger.kernel.org, akpm@linux-foundation.org Return-path: Received: from mail-pd0-f178.google.com ([209.85.192.178]:40340 "EHLO mail-pd0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932403Ab3FFMxY (ORCPT ); Thu, 6 Jun 2013 08:53:24 -0400 Sender: linux-crypto-owner@vger.kernel.org List-ID: This patch set introduces sg_pcopy_from_buffer() and sg_pcopy_to_buffer(), which copy data between a linear buffer and an SG list. The only difference between sg_pcopy_{from,to}_buffer() and sg_copy_{from,to}_buffer() is an additional argument that specifies the number of bytes to skip the SG list before copying. The main reason for introducing these functions is to fix a problem in scsi_debug module. And there is a local function in crypto/talitos module, which can be replaced by sg_pcopy_to_buffer(). Akinobu Mita (3): lib/scatterlist: introduce sg_pcopy_from_buffer() and sg_pcopy_to_buffer() crypto: talitos: use sg_pcopy_to_buffer() scsi_debug: fix do_device_access() with wrap around range drivers/crypto/talitos.c | 60 +----------------------- drivers/scsi/scsi_debug.c | 43 ++++++++++++++--- include/linux/scatterlist.h | 5 ++ lib/scatterlist.c | 109 ++++++++++++++++++++++++++++++++++++-------- 4 files changed, 131 insertions(+), 86 deletions(-) Cc: Tejun Heo Cc: Imre Deak Cc: Herbert Xu Cc: "David S. Miller" Cc: linux-crypto@vger.kernel.org Cc: "James E.J. Bottomley" Cc: Douglas Gilbert Cc: linux-scsi@vger.kernel.org -- 1.8.1.4