2016-01-21 17:49 GMT+08:00 Matias BjÃrling <mb@xxxxxxxxxxx>:
On 01/21/2016 10:47 AM, Wenwei Tao wrote:Then I think the suggestion:
<snip>
Currently a bitmap of luns already added into nvm_dev, every time we
map the luns we check the bitmap.
I don't quite understand why we need to add another bitmap?
We can definitely use lun_map that you introduced in the patch.
How about extending the functionality to take a bitmap of luns, which
defines the luns that we like to map. Do the necessary check if any of
them is in use, and then proceed if all is available?
has already been implemented in this patch.