Re: [PATCH 2/3] lightnvm: handle targets when corresponding nvm device exit

2015-11-26 Thread Wenwei Tao
The reason why I put it in the ppalist_pool is that when I wrote the code I thought state we needed was only exiting/stopping, I didn't want to add a variable for just a bit. I will send you a patch base on the lasted master 4.4rc2. 2015-11-25 23:39 GMT+08:00 Matias Bjørling : > On 11/25/2015 01

Re: [PATCH 2/3] lightnvm: handle targets when corresponding nvm device exit

2015-11-25 Thread Matias Bjørling
On 11/25/2015 01:42 PM, Wenwei Tao wrote: block creations of new targets, remove exiting targets when underlying device was gone. Signed-off-by: Wenwei Tao --- drivers/lightnvm/core.c | 127 ++- include/linux/lightnvm.h | 3 ++ 2 files changed,

[PATCH 2/3] lightnvm: handle targets when corresponding nvm device exit

2015-11-25 Thread Wenwei Tao
block creations of new targets, remove exiting targets when underlying device was gone. Signed-off-by: Wenwei Tao --- drivers/lightnvm/core.c | 127 ++- include/linux/lightnvm.h | 3 ++ 2 files changed, 85 insertions(+), 45 deletions(-) diff --git