Re: [PATCH] lightnvm: wrong offset in bad blk lun calculation

2015-12-29 Thread Jens Axboe
On 12/29/2015 06:37 AM, Matias Bjørling wrote: dev->nr_luns reports the total number of luns available in a device while dev->luns_per_chnl is the number of luns per channel. When multiple channels are available, the offset is calculated from a channel and lun id into a linear array. As it

[PATCH] lightnvm: wrong offset in bad blk lun calculation

2015-12-29 Thread Matias Bjørling
dev->nr_luns reports the total number of luns available in a device while dev->luns_per_chnl is the number of luns per channel. When multiple channels are available, the offset is calculated from a channel and lun id into a linear array. As it multiplies with the total number of luns, we go out

Re: [PATCH] lightnvm: wrong offset in bad blk lun calculation

2015-12-29 Thread Jens Axboe
On 12/29/2015 06:37 AM, Matias Bjørling wrote: dev->nr_luns reports the total number of luns available in a device while dev->luns_per_chnl is the number of luns per channel. When multiple channels are available, the offset is calculated from a channel and lun id into a linear array. As it

[PATCH] lightnvm: wrong offset in bad blk lun calculation

2015-12-29 Thread Matias Bjørling
dev->nr_luns reports the total number of luns available in a device while dev->luns_per_chnl is the number of luns per channel. When multiple channels are available, the offset is calculated from a channel and lun id into a linear array. As it multiplies with the total number of luns, we go out