Received: from eggs.gnu.org ([2001:4830:134:3::10]:59473) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dnPcl-0002v3-88 for qemu-devel@nongnu.org; Thu, 31 Aug 2017 09:35:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dnPci-0007tb-63 for qemu-devel@nongnu.org; Thu, 31 Aug 2017 09:35:11 -0400 Received: from fanzine.igalia.com ([91.117.99.155]:45881) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dnPch-0007fd-PC for qemu-devel@nongnu.org; Thu, 31 Aug 2017 09:35:08 -0400 From: Alberto Garcia In-Reply-To: References: <1504016587-39779-1-git-send-email-pradeep.jagadeesh@huawei.com> <9b24c28f-f891-1046-f09f-bffded9e316f@huawei.com> Date: Thu, 31 Aug 2017 15:34:16 +0200 Message-ID: MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v8 0/6] fsdev: qmp interface for io throttling List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Pradeep Jagadeesh , Pradeep Jagadeesh , eric blake , greg kurz Cc: Markus Armbruster , "Dr. David Alan Gilbert" , jani kokkonen , qemu-devel@nongnu.org On Wed 30 Aug 2017 05:12:22 PM CEST, Pradeep Jagadeesh wrote: > On 8/30/2017 5:10 PM, Alberto Garcia wrote: >> On Wed 30 Aug 2017 05:07:29 PM CEST, Pradeep Jagadeesh wrote: >> >>> Thanks for the steps, I did reproduce the issue easily. Looking into >>> the code, may be we also need to try the same with the block devices. >> >> I did some tests and it was working fine, so I'd suspect of the fsdev >> code first. >> > OK, thanks for the clarification. I will look into fsdev code. I just took a quick look at the code, the problem is almost certainly in fsdev_set_io_throttle(): that doesn't simply update the config, it also reinitializes the FsThrottle structure completely, creates new timers and new throttled_reqs queues. If there were pending requests there they're probably lost forever. Take a look at blk_set_io_limits() and see how it is done for block devices. Berto