Re: [RFC PATCH 2/2] lightnvm: Append device name to target name

2016-05-24 Thread Wenwei Tao
It's fine to allow the user to define a device name as long as hold the global lock and link the targets into a global list but that may against the idea to move the target management into media mgr. 2016-05-24 22:17 GMT+08:00 Matias Bjørling : > On 05/23/2016 03:31 PM, Wenwei

Re: [RFC PATCH 2/2] lightnvm: Append device name to target name

2016-05-24 Thread Wenwei Tao
It's fine to allow the user to define a device name as long as hold the global lock and link the targets into a global list but that may against the idea to move the target management into media mgr. 2016-05-24 22:17 GMT+08:00 Matias Bjørling : > On 05/23/2016 03:31 PM, Wenwei Tao wrote: >> >>

Re: [RFC PATCH 2/2] lightnvm: Append device name to target name

2016-05-24 Thread Matias Bjørling
On 05/23/2016 03:31 PM, Wenwei Tao wrote: Eh.. my lock patch can only prevent concurrent creation of the same name target on the same backend device, not the concurrent creation of same name target on different backend devices, since target management is protect by per device's gn->lock not the

Re: [RFC PATCH 2/2] lightnvm: Append device name to target name

2016-05-24 Thread Matias Bjørling
On 05/23/2016 03:31 PM, Wenwei Tao wrote: Eh.. my lock patch can only prevent concurrent creation of the same name target on the same backend device, not the concurrent creation of same name target on different backend devices, since target management is protect by per device's gn->lock not the

Re: [RFC PATCH 2/2] lightnvm: Append device name to target name

2016-05-23 Thread Wenwei Tao
Eh.. my lock patch can only prevent concurrent creation of the same name target on the same backend device, not the concurrent creation of same name target on different backend devices, since target management is protect by per device's gn->lock not the global nvm_lock now. 2016-05-23 20:24

Re: [RFC PATCH 2/2] lightnvm: Append device name to target name

2016-05-23 Thread Wenwei Tao
Eh.. my lock patch can only prevent concurrent creation of the same name target on the same backend device, not the concurrent creation of same name target on different backend devices, since target management is protect by per device's gn->lock not the global nvm_lock now. 2016-05-23 20:24

Re: [RFC PATCH 2/2] lightnvm: Append device name to target name

2016-05-23 Thread Matias Bjørling
On 05/23/2016 01:05 PM, Wenwei Tao wrote: 2016-05-23 17:16 GMT+08:00 Matias Bjørling : On 05/23/2016 11:13 AM, Wenwei Tao wrote: From: Wenwei Tao We may create targets with same name on different backend devices, this is not what we want, so append

Re: [RFC PATCH 2/2] lightnvm: Append device name to target name

2016-05-23 Thread Matias Bjørling
On 05/23/2016 01:05 PM, Wenwei Tao wrote: 2016-05-23 17:16 GMT+08:00 Matias Bjørling : On 05/23/2016 11:13 AM, Wenwei Tao wrote: From: Wenwei Tao We may create targets with same name on different backend devices, this is not what we want, so append the device name to target name to make the

Re: [RFC PATCH 2/2] lightnvm: Append device name to target name

2016-05-23 Thread Wenwei Tao
2016-05-23 17:16 GMT+08:00 Matias Bjørling : > On 05/23/2016 11:13 AM, Wenwei Tao wrote: >> >> From: Wenwei Tao >> >> We may create targets with same name on different >> backend devices, this is not what we want, so append >> the device name to target name

Re: [RFC PATCH 2/2] lightnvm: Append device name to target name

2016-05-23 Thread Wenwei Tao
2016-05-23 17:16 GMT+08:00 Matias Bjørling : > On 05/23/2016 11:13 AM, Wenwei Tao wrote: >> >> From: Wenwei Tao >> >> We may create targets with same name on different >> backend devices, this is not what we want, so append >> the device name to target name to make the new target >> name unique

Re: [RFC PATCH 2/2] lightnvm: Append device name to target name

2016-05-23 Thread Matias Bjørling
On 05/23/2016 11:13 AM, Wenwei Tao wrote: From: Wenwei Tao We may create targets with same name on different backend devices, this is not what we want, so append the device name to target name to make the new target name unique in the system. Signed-off-by: Wenwei Tao

Re: [RFC PATCH 2/2] lightnvm: Append device name to target name

2016-05-23 Thread Matias Bjørling
On 05/23/2016 11:13 AM, Wenwei Tao wrote: From: Wenwei Tao We may create targets with same name on different backend devices, this is not what we want, so append the device name to target name to make the new target name unique in the system. Signed-off-by: Wenwei Tao ---

[RFC PATCH 2/2] lightnvm: Append device name to target name

2016-05-23 Thread Wenwei Tao
From: Wenwei Tao We may create targets with same name on different backend devices, this is not what we want, so append the device name to target name to make the new target name unique in the system. Signed-off-by: Wenwei Tao ---

[RFC PATCH 2/2] lightnvm: Append device name to target name

2016-05-23 Thread Wenwei Tao
From: Wenwei Tao We may create targets with same name on different backend devices, this is not what we want, so append the device name to target name to make the new target name unique in the system. Signed-off-by: Wenwei Tao --- drivers/lightnvm/gennvm.c | 13 +++-- 1 file changed,