nvme: add support for streams and directives write-stream.10
authorJens Axboe <axboe@kernel.dk>
Mon, 26 Jun 2017 14:23:25 +0000 (08:23 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 26 Jun 2017 15:31:37 +0000 (09:31 -0600)
commit59d60f12e3ab92051861499d68556a25f2fada63
treef6ac4e78b2b1f301e5be83b24c63f6cb74cc54ae
parent3796014f2b652079636c38d8847b1e99f3341bcc
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.

Reviewed-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h
include/linux/nvme.h