[lkml]   [2015]   [Apr]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 1/5 v2] blk-mq: Add prep/unprep support
On 04/17/2015 08:34 AM, Christoph Hellwig wrote:
> On Wed, Apr 15, 2015 at 02:34:40PM +0200, Matias Bj??rling wrote:
>> Allow users to hook into prep/unprep functions just before an IO is
>> dispatched to the device driver. This is necessary for request-based
>> logic to take place at upper layers.
> I don't think any of this logic belongs into the block layer. All this
> should be library functions called by the drivers.

Just the prep/unprep, or other pieces as well?

I like that struct request_queue has a ref to struct nvm_dev, and the
variables in request and bio to get to the struct is in the block layer.

In the future, applications can have an API to get/put flash block
directly. (using the blk_nvm_[get/put]_blk interface).

 \ /
  Last update: 2015-04-17 10:41    [W:0.062 / U:2.876 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site