Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753776AbbDQIP6 (ORCPT ); Fri, 17 Apr 2015 04:15:58 -0400 Received: from mail-lb0-f182.google.com ([209.85.217.182]:33817 "EHLO mail-lb0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751935AbbDQIPv (ORCPT ); Fri, 17 Apr 2015 04:15:51 -0400 Message-ID: <5530C132.30107@bjorling.me> Date: Fri, 17 Apr 2015 10:15:46 +0200 From: =?windows-1252?Q?Matias_Bj=F8rling?= Organization: Paletta User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Christoph Hellwig CC: axboe@fb.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, keith.busch@intel.com, javier@paletta.io Subject: Re: [PATCH 1/5 v2] blk-mq: Add prep/unprep support References: <1429101284-19490-1-git-send-email-m@bjorling.me> <1429101284-19490-2-git-send-email-m@bjorling.me> <20150417063439.GB389@infradead.org> In-Reply-To: <20150417063439.GB389@infradead.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 993 Lines: 22 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). -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/