]> git.baikalelectronics.ru Git - kernel.git/commit
lightnvm: submit erases using the I/O path
authorJavier González <jg@lightnvm.io>
Sat, 15 Apr 2017 18:55:37 +0000 (20:55 +0200)
committerJens Axboe <axboe@fb.com>
Sun, 16 Apr 2017 16:06:25 +0000 (10:06 -0600)
commit4c1ea702e9605b8bb3130a975c46f943196ffac7
treec523ceb84476721084dfb4f68cac0496c8cbb383
parent495dc18fb00d1452ae7e25e7e88b57f2fd392b02
lightnvm: submit erases using the I/O path

Until now erases have been submitted as synchronous commands through a
dedicated erase function. In order to enable targets implementing
asynchronous erases, refactor the erase path so that it uses the normal
async I/O submission functions. If a target requires sync I/O, it can
implement it internally. Also, adapt rrpc to use the new erase path.

Signed-off-by: Javier González <javier@cnexlabs.com>
Fixed spelling error.
Signed-off-by: Matias Bjørling <matias@cnexlabs.com>
Signed-off-by: Matias Bjørling <matias@cnexlabs.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/core.c
drivers/lightnvm/rrpc.c
drivers/nvme/host/lightnvm.c
include/linux/lightnvm.h