Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757429AbbFQSES (ORCPT ); Wed, 17 Jun 2015 14:04:18 -0400 Received: from mail-la0-f49.google.com ([209.85.215.49]:35454 "EHLO mail-la0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755472AbbFQSEL (ORCPT ); Wed, 17 Jun 2015 14:04:11 -0400 Message-ID: <5581B697.2060800@bjorling.me> Date: Wed, 17 Jun 2015 20:04:07 +0200 From: Matias Bjorling User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.1.1 MIME-Version: 1.0 To: Christoph Hellwig CC: Stephen.Bates@pmcs.com, keith.busch@intel.com, javier@lightnvm.io, linux-kernel@vger.kernel.org, linux-nvme@lists.infradead.org, axboe@fb.com, linux-fsdevel@vger.kernel.org Subject: Re: [PATCH v4 0/8] Support for Open-Channel SSDs References: <1433508870-28251-1-git-send-email-m@bjorling.me> <20150609074643.GA5707@infradead.org> <55787DDE.7020801@bjorling.me> <20150611102935.GA4419@infradead.org> <557C5787.3000608@bjorling.me> <20150617135905.GA17119@infradead.org> In-Reply-To: <20150617135905.GA17119@infradead.org> Content-Type: text/plain; charset=ISO-8859-1; 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: 1135 Lines: 22 > I don't think the current abuses of the block API are acceptable though. > The crazy deep merging shouldn't be too relevant for SSD-type devices > so I think you'd do better than trying to reuse the TYPE_FS level > blk-mq merging code. If you want to reuse the request > allocation/submission code that's still doable. > > As a start add a new submit_io method to the nvm_dev_ops, and add > an implementation similar to pscsi_execute_cmd in > drivers/target/target_core_pscsi.c for nvme, and a trivial no op > for a null-nvm driver replacing the null-blk additions. This > will give you very similar behavior to your current code, while > allowing to drop all the hacks in the block code. Note that simple > plugging will work just fine which should be all you'll need. > Thanks, I appreciate you taking the time to go through it. I'll respin the patches and remove the block hacks. -- 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/