Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752675AbcCVWEE (ORCPT ); Tue, 22 Mar 2016 18:04:04 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:60037 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752559AbcCVWD7 (ORCPT ); Tue, 22 Mar 2016 18:03:59 -0400 X-AuditID: cbfee61a-f79266d000003652-69-56f1c14ce37a From: Ming Lin To: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org Cc: Christoph Hellwig Subject: [PATCH v2 0/5] mempool based chained scatterlist alloc/free api Date: Tue, 22 Mar 2016 15:03:11 -0700 Message-id: <1458684196-15923-1-git-send-email-mlin@kernel.org> X-Mailer: git-send-email 1.9.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrJJMWRmVeSWpSXmKPExsVy+t9jQV2fgx/DDOZsE7dYufook8XlXXPY LLqv72BzYPbYfbOBzePzJrkApigum5TUnMyy1CJ9uwSujF0NC5gKLvJWbL7dxdrA+IKzi5GT Q0LAROLB7h+sELaYxIV769m6GLk4hARmMUosmrGRFcL5xSix61IXO0gVm4CCxMF1G5i6GDk4 RARsJJq+MYGEmQWUJBasvcsOEhYW8JDYd8MdxGQRUJV4v54ZpIJXwF7i4YS7jBCr5CROHpvM OoGRewEjwypGidSC5ILipPRcw7zUcr3ixNzi0rx0veT83E2MYA8/k9rBeHCX+yFGAQ5GJR7e hg0fwoRYE8uKK3MPMUpwMCuJ8K7q+xgmxJuSWFmVWpQfX1Sak1p8iFGag0VJnPfx/3VhQgLp iSWp2ampBalFMFkmDk6pBkY1K/tPP7fwyG/+zHuyaMvNtNWmz1UDjvzMdVrF900lTvZVh91f m8A/0RvDJ6zTfhy2U7Jlya7Pj6693qwye7F5FOedo6d/rn24f7pow6UXi9g/7nWZlSos33H2 a1ovl4jvt98TuSWPGPqIyKWpBpz1muXG/vkKb7Io/5JZ33rOr5ztxrSvyoVPiaU4I9FQi7mo OBEAJlR7l+wBAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1701 Lines: 42 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. I still keep the macro "SG_MEMPOOL_NR" since it's used in 3 places. 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