Received: from eggs.gnu.org ([2001:4830:134:3::10]:44502) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bxbNb-0007k8-Ks for qemu-devel@nongnu.org; Fri, 21 Oct 2016 11:05:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bxbNW-0000hV-L7 for qemu-devel@nongnu.org; Fri, 21 Oct 2016 11:05:07 -0400 Received: from smtp3.mundo-r.com ([212.51.32.191]:41873 helo=smtp4.mundo-r.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bxbNW-0000hE-Eg for qemu-devel@nongnu.org; Fri, 21 Oct 2016 11:05:02 -0400 From: Alberto Garcia In-Reply-To: References: <1476972863-22041-1-git-send-email-pradeep.jagadeesh@huawei.com> Date: Fri, 21 Oct 2016 17:05:00 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH V5] fsdev: add IO throttle support to fsdev devices List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pradeep Jagadeesh , "Aneesh Kumar K.V" , Greg Kurz Cc: Pradeep Jagadeesh , qemu-devel@nongnu.org, Claudio Fontana On Fri 21 Oct 2016 05:02:29 PM CEST, Alberto Garcia wrote: >> +void fsdev_throttle_request(FsThrottle *fst, bool is_write, >> + struct iovec *iov, int iovcnt) > > First, mark the function as running in a coroutine context: > > void coroutine_fn fsdev_throttle_request(FsThrottle *fst, bool is_write, > struct iovec *iov, int > iovcnt) Sorry, I forgot to update the function name, it should be fsdev_co_throttle_request() Berto