diff options
author | Ming Lin <ming.l@ssi.samsung.com> | 2016-04-04 17:48:11 -0400 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2016-04-15 16:53:14 -0400 |
commit | 9b1d6c8950021ab007608d455fc9c398ecd25476 (patch) | |
tree | 6dabbc37da01e225dbf66f1c400b551f1baf10f9 /lib/Kconfig | |
parent | 65e8617fba17732b4c68d3369a621725838b6f28 (diff) |
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>
Diffstat (limited to 'lib/Kconfig')
-rw-r--r-- | lib/Kconfig | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Kconfig b/lib/Kconfig index 3cca1222578e..61d55bd0ed89 100644 --- a/lib/Kconfig +++ b/lib/Kconfig | |||
@@ -523,6 +523,13 @@ config SG_SPLIT | |||
523 | a scatterlist. This should be selected by a driver or an API which | 523 | a scatterlist. This should be selected by a driver or an API which |
524 | whishes to split a scatterlist amongst multiple DMA channels. | 524 | whishes to split a scatterlist amongst multiple DMA channels. |
525 | 525 | ||
526 | config SG_POOL | ||
527 | def_bool n | ||
528 | help | ||
529 | Provides a helper to allocate chained scatterlists. This should be | ||
530 | selected by a driver or an API which whishes to allocate chained | ||
531 | scatterlist. | ||
532 | |||
526 | # | 533 | # |
527 | # sg chaining option | 534 | # sg chaining option |
528 | # | 535 | # |