[PATCH 2/2] added two nvme commands for open/close streams and garbage collection

2015-04-20 Thread kwan.huen
--- include/uapi/linux/nvme.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/uapi/linux/nvme.h b/include/uapi/linux/nvme.h index aef9a81..5025610 100644 --- a/include/uapi/linux/nvme.h +++ b/include/uapi/linux/nvme.h @@ -229,6 +229,8 @@ enum nvme_opcode { nvme_cmd_resv_repor

[PATCH 1/2] added stream id write support

2015-04-20 Thread kwan.huen
--- drivers/block/nvme-core.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/block/nvme-core.c b/drivers/block/nvme-core.c index 85b8036..332341a 100644 --- a/drivers/block/nvme-core.c +++ b/drivers/block/nvme-core.c @@ -769,6 +769,9 @@ static int nvme_submit_iod(struct nvme_queue

Write with Stream ID Support

2015-04-20 Thread kwan.huen
The attached patch set enables basic write with stream ID support. First patch reads the stream id embedded in the bio and passes to the device along with the write command. Second patch adds two new nvme commands to be used with ioctl such that application can do open/close stream and host ini