lightnvm: pblk: allow allocation of new lines during shutdown
authorHans Holmberg <hans.holmberg@cnexlabs.com>
Thu, 29 Mar 2018 22:04:57 +0000 (00:04 +0200)
committerJens Axboe <axboe@kernel.dk>
Thu, 29 Mar 2018 23:29:09 +0000 (17:29 -0600)
commitb966c50b14de56cd73d40d3fa87b48bbab6e5c8a
tree465e3afd6ad02d51ed246a717775fdf4286ff8ea
parent7be970b2258654ca48bdf35d532b2eeef038fe91
lightnvm: pblk: allow allocation of new lines during shutdown

When shutting down pblk the write buffer is flushed and if the
current line can't fit the data in the write buffer we need
to allocate a new line, so remove the check that prevents this.

Signed-off-by: Hans Holmberg <hans.holmberg@cnexlabs.com>
Reviewed-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-core.c