Skip to content

mempool based chained scatterlist alloc/free api

Ming Lin linux-scsi lkml 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 12 repliesIn review
  2. v25 patches 12 repliesSuperseded
  3. v1 RFC2 patches 9 repliesSuperseded

Changes in v3 from the cover letter

- Resend for Tejun to review. No code change since v2.
- Add review/ack tags

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5scsi: replace "scsi_data_buffer" with "sg_table" in SG functionsdrivers/scsi/scsi_lib.c+23 -181 reply
2/5scsi: replace "mq" with "first_chunk" in SG functionsdrivers/scsi/scsi_lib.c+10 -101 reply
3/5scsi: rename SG related struct and functionsdrivers/scsi/scsi_lib.c+26 -261 reply
4/5scsi: rename SCSI_MAX_{SG, SG_CHAIN}_SEGMENTSdrivers/ata/pata_icside.c drivers/infiniband/ulp/srp/ib_srp.c drivers/scsi/arm/cumana_2.c +11 more+36 -368 replies
5/5lib: scatterlist: move SG pool code from SCSI driver to lib/sg_pool.cdrivers/scsi/Kconfig drivers/scsi/scsi_lib.c include/linux/scatterlist.h +4 more+206 -1561 reply

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchChristoph HellwigBart Van AsscheTejun HeoSagi Grimberg
1/5R-b R-b
2/5R-b R-b
3/5R-b R-b
4/5R-b A-b A-b R-b
5/5R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v3 thread

Cover letter [PATCH v3 0/5] mempool based chained scatterlist alloc/free api

From: Ming Lin <[email protected]>

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
Signature · 1 line
1.9.1