From mboxrd@z Thu Jan 1 00:00:00 1970 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 From: "Aneesh Kumar K.V" Date: Thu, 25 Aug 2011 20:33:38 +0530 Message-Id: <1314284624-14821-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 0/6] hw/9pfs: Implement file descriptor reclaim in VirtFS server List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: aliguori@us.ibm.com 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(-)