Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756369AbcDDVs3 (ORCPT ); Mon, 4 Apr 2016 17:48:29 -0400 Received: from mailout4.samsung.com ([203.254.224.34]:58488 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753043AbcDDVs1 (ORCPT ); Mon, 4 Apr 2016 17:48:27 -0400 X-AuditID: cbfee61a-f79a86d000001a1a-70-5702e128e342 From: Ming Lin To: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org Cc: Christoph Hellwig , Tejun Heo Subject: [PATCH v3 0/5] mempool based chained scatterlist alloc/free api Date: Mon, 04 Apr 2016 14:48:06 -0700 Message-id: <1459806491-16428-1-git-send-email-mlin@kernel.org> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrIJMWRmVeSWpSXmKPExsVy+t9jAV2Nh0zhBl/fKFusXH2UyeLyrjls Ft3Xd7BZ/Fp+lNGBxWPTqk42j903G9g8Pm+SC2CO4rJJSc3JLEst0rdL4MrYfKadueAZb8XP AyeYGxg/cnYxcnBICJhITHxS08XICWSKSVy4t56ti5GLQ0hgKaPEt3t3mEESQgK/GCU2f7YG sdkEFCQOrtvABNIrImAj0fSNCSTMLGAr8fnJR7CwsICHxNyVySBhFgFViUmHzzCChHkF7CUO /OWG2CQncfLYZNYJjNwLGBlWMUqkFiQXFCel5xrmpZbrFSfmFpfmpesl5+duYgR7/JnUDsaD u9wPMQpwMCrx8H44yhguxJpYVlyZe4hRgoNZSYTX6y5TuBBvSmJlVWpRfnxRaU5q8SFGaQ4W JXHex//XhQkJpCeWpGanphakFsFkmTg4pRoYkz9OeLtN9tiT41Ui0d9vreo3/8+/Wmk/qxVH cO63itnHPdUbfPeZtx3cejJhb+jft4lhEzw37og3LE2Neu7L55ctk6/CdTEybVPa76LLktkX cx6eaf1SutPmTkxty0T7L+rRL2+m+84Nnvl32xKD414bf7l/Enw5obvmsbpGfajIk9mZ69oi lFiKMxINtZiLihMBiDuxKfQBAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1719 Lines: 45 From: Ming Lin The fist 4 patches make the SG related definitions/structs/functions in SCSI code generic and the last patch move it to lib/sg_pool.c. v3: - Resend for Tejun to review. No code change since v2. - Add review/ack tags v2: - do modification in scsi code first then move to lib/sg_pool.c - address Christoph's comments Ming Lin (5): scsi: replace "scsi_data_buffer" with "sg_table" in SG functions scsi: replace "mq" with "first_chunk" in SG functions scsi: rename SG related struct and functions scsi: rename SCSI_MAX_{SG, SG_CHAIN}_SEGMENTS lib: scatterlist: move SG pool code from SCSI driver to lib/sg_pool.c drivers/ata/pata_icside.c | 2 +- drivers/infiniband/ulp/srp/ib_srp.c | 4 +- drivers/scsi/Kconfig | 1 + drivers/scsi/arm/cumana_2.c | 2 +- drivers/scsi/arm/eesox.c | 2 +- drivers/scsi/arm/powertec.c | 2 +- drivers/scsi/esas2r/esas2r_main.c | 4 +- drivers/scsi/hisi_sas/hisi_sas.h | 2 +- drivers/scsi/mpt3sas/mpt3sas_base.c | 4 +- drivers/scsi/mpt3sas/mpt3sas_base.h | 2 +- drivers/scsi/scsi_debug.c | 2 +- drivers/scsi/scsi_lib.c | 172 +++++------------------------------- drivers/usb/storage/scsiglue.c | 2 +- include/linux/scatterlist.h | 25 ++++++ include/scsi/scsi.h | 19 ---- include/scsi/scsi_host.h | 2 +- lib/Kconfig | 7 ++ lib/Makefile | 1 + lib/sg_pool.c | 172 ++++++++++++++++++++++++++++++++++++ 19 files changed, 241 insertions(+), 186 deletions(-) create mode 100644 lib/sg_pool.c -- 1.9.1