nvme: add support for streams and directives write-stream.1
authorJens Axboe <axboe@kernel.dk>
Tue, 13 Jun 2017 16:37:07 +0000 (10:37 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 13 Jun 2017 16:43:55 +0000 (10:43 -0600)
commit7e0de388600c4789d07a581d98f0b044e9b34d3b
tree8eb1b4685cf3068621f1bd54d66a4057ff12210a
parentfc8f6085b0285139c75eeafa6b6e2f4e693b4d51
nvme: add support for streams and directives

This adds support for Directives in NVMe, particular for the Streams
directive. We default to allocating 4 streams per name space, but
it is configurable with the 'streams_per_ns' module option.

If a write stream is set in a write, flag is as such before
sending it to the device.

Some debug stuff in this patch, dumping streams ID params when
we load nvme.

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