mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
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 <[email protected]> Signed-off-by: Ming Lin <[email protected]> Reviewed-by: Sagi Grimberg <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
This commit is contained in:
parent
65e8617fba
commit
9b1d6c8950
7 changed files with 206 additions and 156 deletions
|
|
@ -523,6 +523,13 @@ config SG_SPLIT
|
|||
a scatterlist. This should be selected by a driver or an API which
|
||||
whishes to split a scatterlist amongst multiple DMA channels.
|
||||
|
||||
config SG_POOL
|
||||
def_bool n
|
||||
help
|
||||
Provides a helper to allocate chained scatterlists. This should be
|
||||
selected by a driver or an API which whishes to allocate chained
|
||||
scatterlist.
|
||||
|
||||
#
|
||||
# sg chaining option
|
||||
#
|
||||
|
|
|
|||
Loading…
Reference in a new issue