nvme: add support for streams and directives write-stream.9
authorJens Axboe <axboe@kernel.dk>
Wed, 21 Jun 2017 00:18:07 +0000 (18:18 -0600)
committerJens Axboe <axboe@kernel.dk>
Wed, 21 Jun 2017 00:18:07 +0000 (18:18 -0600)
commitba4c2dbe7070d0a9c64a7d1e6efd94b9e0b8bdd5
tree55ad1ebabcea20cae631cf94f1c75b8ad1a0271c
parent3c6ea22adbd044ace3a622be65dff1cc569042f1
nvme: add support for streams and directives

This adds support for Directives in NVMe, particular for the Streams
directive. Support for Directives is a new feature in NVMe 1.3. It
allows a user to pass in information about where to store the data, so
that it the device can do so most effiently. If an application is
managing and writing data with different life times, mixing differently
retentioned data onto the same locations on flash can cause write
amplification to grow. This, in turn, will reduce performance and life
time of the device.

Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h
include/linux/nvme.h