lightnvm: introduce nvm_submit_ppa
authorMatias Bjørling <m@bjorling.me>
Tue, 12 Jan 2016 06:49:30 +0000 (07:49 +0100)
committerJens Axboe <axboe@fb.com>
Tue, 12 Jan 2016 15:21:17 +0000 (08:21 -0700)
commit09719b62fdab031e39b39a6470364a372abdf3f4
tree149130e72879af4aa048967694c3927d3e397a63
parent72d256ecc5d0c8cbcc0bd5c6d983b434df556cb4
lightnvm: introduce nvm_submit_ppa

Internal logic for both core and media managers, does not have a
backing bio for issuing I/Os. Introduce nvm_submit_ppa to allow raw
I/Os to be submitted to the underlying device driver.

The function request the device, ppa, data buffer and its length and
will submit the I/O synchronously to the device. The return value may
therefore be used to detect any errors regarding the issued I/O.

Signed-off-by: Matias Bjørling <m@bjorling.me>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/lightnvm/core.c
include/linux/lightnvm.h