lib: scatterlist: move SG pool code from SCSI driver to lib/sg_pool.c
authorMing Lin <ming.l@ssi.samsung.com>
Mon, 4 Apr 2016 21:48:11 +0000 (14:48 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Fri, 15 Apr 2016 20:53:14 +0000 (16:53 -0400)
commit9b1d6c8950021ab007608d455fc9c398ecd25476
tree6dabbc37da01e225dbf66f1c400b551f1baf10f9
parent65e8617fba17732b4c68d3369a621725838b6f28
lib: scatterlist: move SG pool code from SCSI driver to lib/sg_pool.c

Now it's ready to move the mempool based SG chained allocator code from
SCSI driver to lib/sg_pool.c, which will be compiled only based on a Kconfig
symbol CONFIG_SG_POOL.

SCSI selects CONFIG_SG_POOL.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Ming Lin <ming.l@ssi.samsung.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/Kconfig
drivers/scsi/scsi_lib.c
include/linux/scatterlist.h
include/scsi/scsi.h
lib/Kconfig
lib/Makefile
lib/sg_pool.c [new file with mode: 0644]