lightnvm: pblk: control I/O flow also on tear down
authorJavier González <jg@lightnvm.io>
Fri, 7 Jul 2017 19:08:52 +0000 (21:08 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 7 Jul 2017 19:17:34 +0000 (13:17 -0600)
commit3eaa11e2780dc38350c133bd998cac1df488d040
tree72f51ca76c7ae028386bd614220faf97d56b1cfd
parent0e2ff11311d1d4c85dd9ad9ba4347775f628e94a
lightnvm: pblk: control I/O flow also on tear down

When removing a pblk instance, control the write I/O flow to the
controller as we do in the fast path.

Signed-off-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <matias@cnexlabs.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/lightnvm/pblk-core.c
drivers/lightnvm/pblk-recovery.c
drivers/lightnvm/pblk-write.c
drivers/lightnvm/pblk.h