Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753924AbbLOOKw (ORCPT ); Tue, 15 Dec 2015 09:10:52 -0500 Received: from mail-wm0-f47.google.com ([74.125.82.47]:38462 "EHLO mail-wm0-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752248AbbLOOKu (ORCPT ); Tue, 15 Dec 2015 09:10:50 -0500 Subject: Re: [PATCH RFC 3/5] lightnvm: add sync support for submit_io To: Christoph Hellwig References: <1450099027-24745-1-git-send-email-m@bjorling.me> <1450099027-24745-4-git-send-email-m@bjorling.me> <20151215123436.GA26021@infradead.org> Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org From: =?UTF-8?Q?Matias_Bj=c3=b8rling?= Organization: Paletta Message-ID: <56701F67.7010109@bjorling.me> Date: Tue, 15 Dec 2015 15:10:47 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: <20151215123436.GA26021@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: 739 Lines: 16 On 12/15/2015 01:34 PM, Christoph Hellwig wrote: > On Mon, Dec 14, 2015 at 02:17:05PM +0100, Matias Bj??rling wrote: >> Allow read and write I/Os to be issued synchronous. Users include the >> LightNVM core to implement system block support and similar. > > I think the right way to implement this is to wait in the caller, > e.g. set your end_io handler to a trivial one that just does a complete > and add a completion that you can wait on in the caller. > Thanks Christoph. I'll change it. -- 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/