lightnvm: pblk: remove target using async. I/Os
authorJavier González <jg@lightnvm.io>
Fri, 30 Jun 2017 15:56:40 +0000 (17:56 +0200)
committerJens Axboe <axboe@kernel.dk>
Fri, 30 Jun 2017 17:08:18 +0000 (11:08 -0600)
commitee8d5c1ad54e48ec44b6ae9cf91144fcab6ebf83
treecd5e6be51067d2eb47fa42c031a723644593d94f
parentde54e703a4229e4688eb77b32b1c27861384e22a
lightnvm: pblk: remove target using async. I/Os

When removing a pblk instance, pad the current line using asynchronous
I/O. This reduces the removal time from ~1 minute in the worst case to a
couple of seconds.

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-init.c
drivers/lightnvm/pblk-rb.c
drivers/lightnvm/pblk-recovery.c
drivers/lightnvm/pblk-write.c
drivers/lightnvm/pblk.h