Re: [PATCH 5/5] lightnvm: pblk: fix erase counters on error fail

2017-04-23 Thread Javier González
> On 23 Apr 2017, at 19.59, Matias Bjørling wrote: > > On 04/22/2017 11:31 AM, Javier González wrote: >>> On 22 Apr 2017, at 11.22, Matias Bjørling wrote: >>> >>> On 04/22/2017 01:32 AM, Javier González wrote: When block erases fail, these blocks are

Re: [PATCH 5/5] lightnvm: pblk: fix erase counters on error fail

2017-04-23 Thread Matias Bjørling
On 04/22/2017 11:31 AM, Javier González wrote: On 22 Apr 2017, at 11.22, Matias Bjørling wrote: On 04/22/2017 01:32 AM, Javier González wrote: When block erases fail, these blocks are marked bad. The number of valid blocks in the line was not updated, which could cause an

Re: [PATCH 5/5] lightnvm: pblk: fix erase counters on error fail

2017-04-22 Thread Javier González
> On 22 Apr 2017, at 11.22, Matias Bjørling wrote: > > On 04/22/2017 01:32 AM, Javier González wrote: >> When block erases fail, these blocks are marked bad. The number of valid >> blocks in the line was not updated, which could cause an infinite loop >> on the erase path. >>

Re: [PATCH 5/5] lightnvm: pblk: fix erase counters on error fail

2017-04-22 Thread Matias Bjørling
On 04/22/2017 01:32 AM, Javier González wrote: When block erases fail, these blocks are marked bad. The number of valid blocks in the line was not updated, which could cause an infinite loop on the erase path. Fix this atomic counter and, in order to avoid taking an irq lock on the interrupt

[PATCH 5/5] lightnvm: pblk: fix erase counters on error fail

2017-04-21 Thread Javier González
When block erases fail, these blocks are marked bad. The number of valid blocks in the line was not updated, which could cause an infinite loop on the erase path. Fix this atomic counter and, in order to avoid taking an irq lock on the interrupt context, make the erase counters atomic too. Also,