Received: from eggs.gnu.org ([2001:4830:134:3::10]:34141) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c8r5m-0002nr-TO for qemu-devel@nongnu.org; Mon, 21 Nov 2016 11:05:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c8r5h-0004pV-Tu for qemu-devel@nongnu.org; Mon, 21 Nov 2016 11:05:14 -0500 Received: from 4.mo53.mail-out.ovh.net ([188.165.36.167]:49621) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c8r5h-0004nk-O1 for qemu-devel@nongnu.org; Mon, 21 Nov 2016 11:05:09 -0500 Received: from player158.ha.ovh.net (b7.ovh.net [213.186.33.57]) by mo53.mail-out.ovh.net (Postfix) with ESMTP id AE0E742324 for ; Mon, 21 Nov 2016 17:05:07 +0100 (CET) Date: Mon, 21 Nov 2016 17:05:02 +0100 From: Greg Kurz Message-ID: <20161121170502.4ab9d813@bahia> In-Reply-To: <1479352616-64991-1-git-send-email-liq3ea@gmail.com> References: <1479352616-64991-1-git-send-email-liq3ea@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 0/4] 9pfs: add cleanup operation in handle/proxy backend List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Li Qiang Cc: qemu-devel@nongnu.org, liqiang6-s@360.cn On Wed, 16 Nov 2016 22:16:52 -0500 Li Qiang wrote: > Currently, the backend of VirtFS doesn't have a cleanup > function. This will leak some resources in handle and proxy > backend driver. This patchset addresses this issue. > > Li Qiang (4): > 9pfs: adjust the order of resource cleanup in device unrealize > 9pfs: add cleanup operation in FileOperations > 9pfs: add cleanup operation for handle backend driver > 9pfs: add cleanup operation for proxy backend driver > > fsdev/file-op-9p.h | 1 + > hw/9pfs/9p-handle.c | 9 +++++++++ > hw/9pfs/9p-proxy.c | 13 +++++++++++++ > hw/9pfs/9p.c | 10 ++++++++-- > 4 files changed, 31 insertions(+), 2 deletions(-) > Hi Li, This looks good. I'll send a pull request shortly. Thanks for your help in fixing all these leaks. -- Greg