Re: [PATCH] lightnvm: do device max sectors boundary check first

2015-11-22 Thread Matias
On 11/22/2015 12:30 PM, Wenwei Tao wrote: do device max_phys_sect boundary check first, otherwise we will allocate dma_pools for devices whose max sectors are beyond lightnvm support and register them. Signed-off-by: Wenwei Tao --- drivers/lightnvm/core.c | 8 +--- 1 file changed, 5

[PATCH] lightnvm: do device max sectors boundary check first

2015-11-22 Thread Wenwei Tao
do device max_phys_sect boundary check first, otherwise we will allocate dma_pools for devices whose max sectors are beyond lightnvm support and register them. Signed-off-by: Wenwei Tao --- drivers/lightnvm/core.c | 8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git

[PATCH] lightnvm: do device max sectors boundary check first

2015-11-22 Thread Wenwei Tao
do device max_phys_sect boundary check first, otherwise we will allocate dma_pools for devices whose max sectors are beyond lightnvm support and register them. Signed-off-by: Wenwei Tao --- drivers/lightnvm/core.c | 8 +--- 1 file changed, 5 insertions(+), 3

Re: [PATCH] lightnvm: do device max sectors boundary check first

2015-11-22 Thread Matias
On 11/22/2015 12:30 PM, Wenwei Tao wrote: do device max_phys_sect boundary check first, otherwise we will allocate dma_pools for devices whose max sectors are beyond lightnvm support and register them. Signed-off-by: Wenwei Tao --- drivers/lightnvm/core.c | 8 +---