From patchwork Thu Aug 25 15:03:38 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Aneesh Kumar K.V" X-Patchwork-Id: 111600 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 9650DB6EE8 for ; Fri, 26 Aug 2011 01:47:38 +1000 (EST) Received: from localhost ([::1]:41219 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwbU2-00024Q-1W for incoming@patchwork.ozlabs.org; Thu, 25 Aug 2011 11:04:42 -0400 Received: from eggs.gnu.org ([140.186.70.92]:55485) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwbTc-0001l6-Er for qemu-devel@nongnu.org; Thu, 25 Aug 2011 11:04:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QwbTa-0001xS-7C for qemu-devel@nongnu.org; Thu, 25 Aug 2011 11:04:16 -0400 Received: from e23smtp01.au.ibm.com ([202.81.31.143]:54355) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QwbTZ-0001x3-L0 for qemu-devel@nongnu.org; Thu, 25 Aug 2011 11:04:14 -0400 Received: from d23relay04.au.ibm.com (d23relay04.au.ibm.com [202.81.31.246]) by e23smtp01.au.ibm.com (8.14.4/8.13.1) with ESMTP id p7PExPw4020921 for ; Fri, 26 Aug 2011 00:59:25 +1000 Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay04.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p7PF2i7Q831616 for ; Fri, 26 Aug 2011 01:02:46 +1000 Received: from d23av02.au.ibm.com (loopback [127.0.0.1]) by d23av02.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p7PF41dZ004407 for ; Fri, 26 Aug 2011 01:04:01 +1000 Received: from skywalker.ibm.com ([9.126.238.106]) by d23av02.au.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p7PF40v7004378; Fri, 26 Aug 2011 01:04:00 +1000 From: "Aneesh Kumar K.V" To: qemu-devel@nongnu.org Date: Thu, 25 Aug 2011 20:33:38 +0530 Message-Id: <1314284624-14821-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.4.1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 202.81.31.143 Cc: aliguori@us.ibm.com Subject: [Qemu-devel] [PATCH 0/6] hw/9pfs: Implement file descriptor reclaim in VirtFS server X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Hi, The patch series implement file descriptor reclaim support in VirtFS server. VirtFS qemu server track open file descriptor on the client using an open fid. This result in server returning EMFILE error even though on the client side the process have not reached maximum open file limit. To fix this we reclaim file descriptor on the server when we reach high watermark. The following changes since commit 56a7a874e962e28522857fbf72eaefb1a07e2001: Merge remote-tracking branch 'stefanha/trivial-patches' into staging (2011-08-25 07:50:07 -0500) are available in the git repository at: git://repo.or.cz/qemu/v9fs.git for-upstream-3 Aneesh Kumar K.V (6): hw/9pfs: Add reference counting for fid hw/9pfs: Add file descriptor reclaim support hw/9pfs: init fid list properly hw/9pfs: Use v9fs_do_close instead of close hw/9pfs: Add directory reclaim support hw/9pfs: mark directories also as un-reclaimable on unlink hw/9pfs/codir.c | 13 +- hw/9pfs/cofile.c | 19 ++- hw/9pfs/virtio-9p-coth.h | 4 +- hw/9pfs/virtio-9p-device.c | 2 + hw/9pfs/virtio-9p.c | 486 +++++++++++++++++++++++++++++++++++--------- hw/9pfs/virtio-9p.h | 24 ++- 6 files changed, 445 insertions(+), 103 deletions(-)