Re: [PATCH 2/8] blk-mq: bidi support

2014-04-16 Thread Jens Axboe
On 04/16/2014 10:47 AM, Christoph Hellwig wrote: > On Wed, Apr 16, 2014 at 10:45:03AM -0600, Jens Axboe wrote: >> There's nothing wrong with the check, it's identical to one I sent out >> last week. But it's not part of the bidi enable patch, it's a separate >> bug fix for bsg. > > Do you want to

Re: [PATCH 2/8] blk-mq: bidi support

2014-04-16 Thread Christoph Hellwig
On Wed, Apr 16, 2014 at 10:45:03AM -0600, Jens Axboe wrote: > There's nothing wrong with the check, it's identical to one I sent out > last week. But it's not part of the bidi enable patch, it's a separate > bug fix for bsg. Do you want to split it up while applying or should I resend two separate

Re: [PATCH 2/8] blk-mq: bidi support

2014-04-16 Thread Jens Axboe
On 04/16/2014 10:44 AM, Christoph Hellwig wrote: > On Wed, Apr 16, 2014 at 10:41:30AM -0600, Jens Axboe wrote: >>> - if (!q->request_fn) >>> + if (!q->request_fn && !q->mq_ops) >>> return 0; >>> >>> bcd = &q->bsg_dev; >> >> This looks misplaced. But I dropped the one I generat

Re: [PATCH 2/8] blk-mq: bidi support

2014-04-16 Thread Christoph Hellwig
On Wed, Apr 16, 2014 at 10:41:30AM -0600, Jens Axboe wrote: > > - if (!q->request_fn) > > + if (!q->request_fn && !q->mq_ops) > > return 0; > > > > bcd = &q->bsg_dev; > > This looks misplaced. But I dropped the one I generated last week, I'll > queue it up separately in the d

Re: [PATCH 2/8] blk-mq: bidi support

2014-04-16 Thread Jens Axboe
On 04/16/2014 01:44 AM, Christoph Hellwig wrote: > diff --git a/block/bsg.c b/block/bsg.c > index 420a5a9..2956086 100644 > --- a/block/bsg.c > +++ b/block/bsg.c > @@ -1008,7 +1008,7 @@ int bsg_register_queue(struct request_queue *q, struct > device *parent, > /* >* we need a proper

[PATCH 2/8] blk-mq: bidi support

2014-04-16 Thread Christoph Hellwig
Add two unlinkely branches to make sure the resid is initialized correctly for bidi request pairs, and the second request gets properly freed. Signed-off-by: Christoph Hellwig --- block/blk-mq.c |9 +++-- block/bsg.c|2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --