Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932168AbbFIHqw (ORCPT ); Tue, 9 Jun 2015 03:46:52 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:48412 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750868AbbFIHqo (ORCPT ); Tue, 9 Jun 2015 03:46:44 -0400 Date: Tue, 9 Jun 2015 00:46:43 -0700 From: Christoph Hellwig To: Matias Bj??rling Cc: hch@infradead.org, axboe@fb.com, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, Stephen.Bates@pmcs.com, keith.busch@intel.com, javier@lightnvm.io Subject: Re: [PATCH v4 0/8] Support for Open-Channel SSDs Message-ID: <20150609074643.GA5707@infradead.org> References: <1433508870-28251-1-git-send-email-m@bjorling.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1433508870-28251-1-git-send-email-m@bjorling.me> User-Agent: Mutt/1.5.23 (2014-03-12) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 868 Lines: 20 Hi Matias, I've been looking over this and I really think it needs a fundamental rearchitecture still. The design of using a separate stacking block device and all kinds of private hooks does not look very maintainable. Here is my counter suggestion: - the stacking block device goes away - the nvm_target_type make_rq and prep_rq callbacks are combined into one and called from the nvme/null_blk ->queue_rq method early on to prepare the FTL state. The drivers that are LightNVM enabled reserve a pointer to it in their per request data, which the unprep_rq callback is called on durign I/O completion. -- 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/