]> git.karo-electronics.de Git - karo-tx-linux.git/commit
lightnvm: add ioctls for vector I/Os
authorMatias Bjørling <matias@cnexlabs.com>
Tue, 31 Jan 2017 12:17:16 +0000 (13:17 +0100)
committerJens Axboe <axboe@fb.com>
Tue, 31 Jan 2017 15:32:13 +0000 (08:32 -0700)
commit84d4add793c65b5bda802dcefcf0d7ab1a8e22ed
treeeac40d17cd823530c96715719473cb142c9918e1
parent19bd6fe73ca812964963aa30827cff9aae64a715
lightnvm: add ioctls for vector I/Os

Enable user-space to issue vector I/O commands through ioctls. To issue
a vector I/O, the ppa list with addresses is also required and must be
mapped for the controller to access.

For each ioctl, the result and status bits are returned as well, such
that user-space can retrieve the open-channel SSD completion bits.

The implementation covers the traditional use-cases of bad block
management, and vectored read/write/erase.

Signed-off-by: Matias Bjørling <matias@cnexlabs.com>
Metadata implementation, test, and fixes.
Signed-off-by: Simon A.F. Lund <slund@cnexlabs.com>
Signed-off-by: Matias Bjørling <matias@cnexlabs.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/nvme/host/core.c
drivers/nvme/host/lightnvm.c
drivers/nvme/host/nvme.h
include/uapi/linux/lightnvm.h