From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52433) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dnlKL-0004Tg-DW for qemu-devel@nongnu.org; Fri, 01 Sep 2017 08:45:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dnlKF-0002uW-If for qemu-devel@nongnu.org; Fri, 01 Sep 2017 08:45:37 -0400 Received: from lhrrgout.huawei.com ([194.213.3.17]:22653) by eggs.gnu.org with esmtps (TLS1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.71) (envelope-from ) id 1dnlKF-0002tA-90 for qemu-devel@nongnu.org; Fri, 01 Sep 2017 08:45:31 -0400 References: <1504016587-39779-1-git-send-email-pradeep.jagadeesh@huawei.com> <9b24c28f-f891-1046-f09f-bffded9e316f@huawei.com> From: Pradeep Jagadeesh Message-ID: Date: Fri, 1 Sep 2017 14:44:27 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="windows-1252"; format=flowed Content-Transfer-Encoding: 7bit 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: Alberto Garcia , Pradeep Jagadeesh , eric blake , greg kurz Cc: Markus Armbruster , "Dr. David Alan Gilbert" , jani kokkonen , qemu-devel@nongnu.org On 8/31/2017 3:34 PM, Alberto Garcia wrote: > 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. I fixed it. I am testing it. I was initializing the queues again. But it just needs updation of throttle configuration. -Pradeep > > Berto >