[PATCH 01/11] block: add support for carrying stream information in a bio

2017-06-14 Thread Jens Axboe
No functional changes in this patch, we just add four flags that will be used to denote a stream type, and ensure that we don't merge across different stream types. Signed-off-by: Jens Axboe --- block/blk-merge.c | 16 include/linux/blk_types.h | 11

Re: [PATCH 01/11] block: add support for carrying stream information in a bio

2017-06-14 Thread Jens Axboe
On 06/14/2017 02:37 PM, Christoph Hellwig wrote: > Btw, I think these could also easily map to DSM field in the NVMe > write command, except that these unfortunately mix in read information > as well. But that's the problem, they are read/write mixed flags. I'd much rather keep them separate. If

Re: [PATCH 01/11] block: add support for carrying stream information in a bio

2017-06-14 Thread Christoph Hellwig
Btw, I think these could also easily map to DSM field in the NVMe write command, except that these unfortunately mix in read information as well. > + __REQ_WRITE_SHORT, /* short life time write */ -> Frequent writes and infrequent reads to the LBA range indicated. or -> Frequent

[PATCH 01/11] block: add support for carrying stream information in a bio

2017-06-14 Thread Jens Axboe
No functional changes in this patch, we just add four flags that will be used to denote a stream type, and ensure that we don't merge across different stream types. Signed-off-by: Jens Axboe --- block/blk-merge.c | 16 include/linux/blk_types.h | 11

Re: [PATCH 01/11] block: add support for carrying stream information in a bio

2017-06-13 Thread Andreas Dilger
On Jun 13, 2017, at 11:15 AM, Jens Axboe wrote: > > No functional changes in this patch, but it allows each bio to > carry a stream ID and disallows merging of bio's with different > stream IDs. > > Signed-off-by: Jens Axboe Reviewed-by: Andreas Dilger

[PATCH 01/11] block: add support for carrying stream information in a bio

2017-06-13 Thread Jens Axboe
No functional changes in this patch, but it allows each bio to carry a stream ID and disallows merging of bio's with different stream IDs. Signed-off-by: Jens Axboe --- block/bio.c | 2 ++ block/blk-merge.c | 14 ++ include/linux/blk_types.h |