Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753897AbbLOMei (ORCPT ); Tue, 15 Dec 2015 07:34:38 -0500 Received: from bombadil.infradead.org ([198.137.202.9]:54347 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753252AbbLOMeg (ORCPT ); Tue, 15 Dec 2015 07:34:36 -0500 Date: Tue, 15 Dec 2015 04:34:36 -0800 From: Christoph Hellwig To: Matias Bj??rling Cc: linux-block@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC 3/5] lightnvm: add sync support for submit_io Message-ID: <20151215123436.GA26021@infradead.org> References: <1450099027-24745-1-git-send-email-m@bjorling.me> <1450099027-24745-4-git-send-email-m@bjorling.me> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1450099027-24745-4-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: 642 Lines: 12 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. -- 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/