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>
Showing
- drivers/scsi/Kconfig 1 addition, 0 deletionsdrivers/scsi/Kconfig
- drivers/scsi/scsi_lib.c 0 additions, 137 deletionsdrivers/scsi/scsi_lib.c
- include/linux/scatterlist.h 25 additions, 0 deletionsinclude/linux/scatterlist.h
- include/scsi/scsi.h 0 additions, 19 deletionsinclude/scsi/scsi.h
- lib/Kconfig 7 additions, 0 deletionslib/Kconfig
- lib/Makefile 1 addition, 0 deletionslib/Makefile
- lib/sg_pool.c 172 additions, 0 deletionslib/sg_pool.c
Loading
Please register or sign in to comment