Re: [PATCH V2] lightnvm: protect target type list with correct locks

2017-09-21 Thread Matias Bjørling
On 09/18/2017 09:53 AM, Javier González wrote: On 16 Sep 2017, at 20.39, Rakesh Pandit wrote: nvm_tgt_types list was protected by wrong lock for NVM_INFO ioctl call and can race with addition or removal of target types. Also unregistering target type was not protected correctly. Fixes: 5cd907

Re: [PATCH V2] lightnvm: protect target type list with correct locks

2017-09-18 Thread Javier González
> On 16 Sep 2017, at 20.39, Rakesh Pandit wrote: > > nvm_tgt_types list was protected by wrong lock for NVM_INFO ioctl call > and can race with addition or removal of target types. Also > unregistering target type was not protected correctly. > > Fixes: 5cd907853 ("lightnvm: remove nested lock

[PATCH V2] lightnvm: protect target type list with correct locks

2017-09-16 Thread Rakesh Pandit
nvm_tgt_types list was protected by wrong lock for NVM_INFO ioctl call and can race with addition or removal of target types. Also unregistering target type was not protected correctly. Fixes: 5cd907853 ("lightnvm: remove nested lock conflict with mm") Signed-off-by: Rakesh Pandit --- V2: also