Re: [PATCH 03/10] xen/blkfront: reorg info->io_lock after using blk-mq API

2015-02-18 Thread Bob Liu
On 02/19/2015 01:05 AM, Christoph Hellwig wrote: > On Sun, Feb 15, 2015 at 04:18:58PM +0800, Bob Liu wrote: >> diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c >> index 3589436..5a90a51 100644 >> --- a/drivers/block/xen-blkfront.c >> +++ b/drivers/block/xen-blkfront.c >> @@

Re: [PATCH 03/10] xen/blkfront: reorg info->io_lock after using blk-mq API

2015-02-18 Thread Christoph Hellwig
On Sun, Feb 15, 2015 at 04:18:58PM +0800, Bob Liu wrote: > diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.c > index 3589436..5a90a51 100644 > --- a/drivers/block/xen-blkfront.c > +++ b/drivers/block/xen-blkfront.c > @@ -614,25 +614,28 @@ static int blk_mq_queue_rq(struct blk

[PATCH 03/10] xen/blkfront: reorg info->io_lock after using blk-mq API

2015-02-15 Thread Bob Liu
Drop unnecessary holding of info->io_lock when calling into blk-mq apis. Signed-off-by: Bob Liu --- drivers/block/xen-blkfront.c | 38 -- 1 file changed, 16 insertions(+), 22 deletions(-) diff --git a/drivers/block/xen-blkfront.c b/drivers/block/xen-blkfront.