Re: [PATCH 01/13] block: move queues types to the block layer

2018-12-04 Thread Sagi Grimberg
Nit, there seems to be an extra newline that can be omitted here before the else if statement (if I'm reading this correctly)... Empty lines can always be ommited, but in this case I actually like it as it seems to help readability.. If you think its useful I'm fine with it as is...

Re: [PATCH 01/13] block: move queues types to the block layer

2018-12-04 Thread Christoph Hellwig
On Mon, Dec 03, 2018 at 04:49:56PM -0800, Sagi Grimberg wrote: >> @@ -103,12 +101,17 @@ static inline struct blk_mq_hw_ctx >> *blk_mq_map_queue(struct request_queue *q, >> unsigned int flags, >> uns

Re: [PATCH 01/13] block: move queues types to the block layer

2018-12-03 Thread Sagi Grimberg
On 12/2/18 8:46 AM, Christoph Hellwig wrote: Having another indirect all in the fast path doesn't really help in our post-spectre world. Also having too many queue type is just going to create confusion, so I'd rather manage them centrally. Note that the queue type naming and ordering change

[PATCH 01/13] block: move queues types to the block layer

2018-12-02 Thread Christoph Hellwig
Having another indirect all in the fast path doesn't really help in our post-spectre world. Also having too many queue type is just going to create confusion, so I'd rather manage them centrally. Note that the queue type naming and ordering changes a bit - the first index now is the default queue

Re: [PATCH 01/13] block: move queues types to the block layer

2018-11-30 Thread Jens Axboe
On 11/30/18 1:00 AM, Christoph Hellwig wrote: > On Thu, Nov 29, 2018 at 01:19:14PM -0700, Keith Busch wrote: >> On Thu, Nov 29, 2018 at 08:12:58PM +0100, Christoph Hellwig wrote: >>> +enum hctx_type { >>> + HCTX_TYPE_DEFAULT, /* all I/O not otherwise accounted for */ >>> + HCTX_TYPE_READ,

Re: [PATCH 01/13] block: move queues types to the block layer

2018-11-30 Thread Christoph Hellwig
On Fri, Nov 30, 2018 at 03:20:51PM +, Jens Axboe wrote: > Thanks - are you going to post a v3? Would like to get this staged. Yes, will do. Either late tonight or over the weekend.

Re: [PATCH 01/13] block: move queues types to the block layer

2018-11-30 Thread Jens Axboe
On 11/30/18 12:56 AM, Christoph Hellwig wrote: > On Thu, Nov 29, 2018 at 07:50:09PM +, Jens Axboe wrote: >>> in our post-spectre world. Also having too many queue type is just >>> going to create confusion, so I'd rather manage them centrally. >>> >>> Note that the queue type naming and orderi

Re: [PATCH 01/13] block: move queues types to the block layer

2018-11-30 Thread Keith Busch
On Fri, Nov 30, 2018 at 12:00:13AM -0800, Christoph Hellwig wrote: > On Thu, Nov 29, 2018 at 01:19:14PM -0700, Keith Busch wrote: > > On Thu, Nov 29, 2018 at 08:12:58PM +0100, Christoph Hellwig wrote: > > > +enum hctx_type { > > > + HCTX_TYPE_DEFAULT, /* all I/O not otherwise accounted for */

Re: [PATCH 01/13] block: move queues types to the block layer

2018-11-30 Thread Christoph Hellwig
On Thu, Nov 29, 2018 at 01:19:14PM -0700, Keith Busch wrote: > On Thu, Nov 29, 2018 at 08:12:58PM +0100, Christoph Hellwig wrote: > > +enum hctx_type { > > + HCTX_TYPE_DEFAULT, /* all I/O not otherwise accounted for */ > > + HCTX_TYPE_READ, /* just for READ I/O */ > > + HCTX_TYPE

Re: [PATCH 01/13] block: move queues types to the block layer

2018-11-29 Thread Christoph Hellwig
On Thu, Nov 29, 2018 at 07:50:09PM +, Jens Axboe wrote: > > in our post-spectre world. Also having too many queue type is just > > going to create confusion, so I'd rather manage them centrally. > > > > Note that the queue type naming and ordering changes a bit - the > > first index now is th

Re: [PATCH 01/13] block: move queues types to the block layer

2018-11-29 Thread Jens Axboe
On 11/29/18 1:19 PM, Keith Busch wrote: > On Thu, Nov 29, 2018 at 08:12:58PM +0100, Christoph Hellwig wrote: >> +enum hctx_type { >> +HCTX_TYPE_DEFAULT, /* all I/O not otherwise accounted for */ >> +HCTX_TYPE_READ, /* just for READ I/O */ >> +HCTX_TYPE_POLL, /* poll

Re: [PATCH 01/13] block: move queues types to the block layer

2018-11-29 Thread Keith Busch
On Thu, Nov 29, 2018 at 08:12:58PM +0100, Christoph Hellwig wrote: > +enum hctx_type { > + HCTX_TYPE_DEFAULT, /* all I/O not otherwise accounted for */ > + HCTX_TYPE_READ, /* just for READ I/O */ > + HCTX_TYPE_POLL, /* polled I/O of any kind */ > + > + HCTX_MAX_

Re: [PATCH 01/13] block: move queues types to the block layer

2018-11-29 Thread Jens Axboe
On 11/29/18 12:12 PM, Christoph Hellwig wrote: > Having another indirect all in the fast path doesn't really help > in our post-spectre world. Also having too many queue type is just > going to create confusion, so I'd rather manage them centrally. > > Note that the queue type naming and ordering

[PATCH 01/13] block: move queues types to the block layer

2018-11-29 Thread Christoph Hellwig
Having another indirect all in the fast path doesn't really help in our post-spectre world. Also having too many queue type is just going to create confusion, so I'd rather manage them centrally. Note that the queue type naming and ordering changes a bit - the first index now is the defauly queue

[PATCH 01/13] block: move queues types to the block layer

2018-11-21 Thread Christoph Hellwig
Having another indirect all in the fast path doesn't really help in our post-spectre world. Also having too many queue type is just going to create confusion, so I'd rather manage them centrally. Note that the queue type naming and ordering changes a bit - the first index now is the defauly queue