Re: [PATCH RFC v2 1/5] xen, blkfront: port to the the multi-queue block layer API

2014-10-01 Thread Konrad Rzeszutek Wilk
On Fri, Sep 12, 2014 at 01:57:20AM +0200, Arianna Avanzini wrote: > This commit introduces support for the multi-queue block layer API, > and at the same time removes the existing request_queue API support. > The changes are only structural, and the number of supported hardware > contexts is forced

Re: [PATCH RFC v2 1/5] xen, blkfront: port to the the multi-queue block layer API

2014-09-13 Thread Christoph Hellwig
> +static int blkfront_queue_rq(struct blk_mq_hw_ctx *hctx, struct request *req) > { > + struct blkfront_info *info = req->rq_disk->private_data; > > + spin_lock_irq(&info->io_lock); > + if (RING_FULL(&info->ring)) > + goto wait; > > - blk_start_request(req)

[PATCH RFC v2 1/5] xen, blkfront: port to the the multi-queue block layer API

2014-09-11 Thread Arianna Avanzini
This commit introduces support for the multi-queue block layer API, and at the same time removes the existing request_queue API support. The changes are only structural, and the number of supported hardware contexts is forcedly set to one. Signed-off-by: Arianna Avanzini --- drivers/block/xen-bl