Re: [PATCH 01/15] block: rework flush sequencing for blk-mq

2014-02-06 Thread Christoph Hellwig
On Wed, Feb 05, 2014 at 06:08:37PM -0800, Muthu Kumar wrote: > > diff --git a/block/blk-core.c b/block/blk-core.c > > index c00e0bd..d3eb330 100644 > > --- a/block/blk-core.c > > +++ b/block/blk-core.c > > @@ -693,11 +693,20 @@ blk_init_queue_node(request_fn_proc *rfn, spinlock_t > > *lock, int no

Re: [PATCH 01/15] block: rework flush sequencing for blk-mq

2014-02-05 Thread Muthu Kumar
On Wed, Feb 5, 2014 at 4:41 AM, Christoph Hellwig wrote: > Switch to using a preallocated flush_rq for blk-mq similar to what's done > with the old request path. This allows us to set up the request properly > with a tag from the actually allowed range and ->rq_disk as needed by > some drivers.

[PATCH 01/15] block: rework flush sequencing for blk-mq

2014-02-05 Thread Christoph Hellwig
Switch to using a preallocated flush_rq for blk-mq similar to what's done with the old request path. This allows us to set up the request properly with a tag from the actually allowed range and ->rq_disk as needed by some drivers. To make life easier we also switch to dynamic allocation of ->flus