Re: [PATCH 1/8] blk-mq: add blk_mq_alloc_request_hctx
From: Christoph Hellwig <hch@lst.de>
Date: 2016-06-08 11:54:38
Also in:
linux-nvme, lkml
From: Christoph Hellwig <hch@lst.de>
Date: 2016-06-08 11:54:38
Also in:
linux-nvme, lkml
On Tue, Jun 07, 2016 at 10:49:22PM -0600, Jens Axboe wrote:
Why are we duplicating this code here? If NOWAIT isn't set, then we'll always return a request. bt_get() will run the queue for us, if it needs to. blk_mq_alloc_request() does this too, and I'm guessing that code was just copied. I'll fix that up. Looks like this should just be:
The generic code is a bit of a mess as it does the nowait optimization in two different cases, I'll send you a separate cleanup patch for that.