From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v5 4/5] vhost: eventfd_link: replace copy-pasted sys_close Date: Wed, 17 Jun 2015 17:24:24 +0200 Message-ID: <1665929.SfCu3BinAE@xps13> References: <1427994080-10163-1-git-send-email-pboldin@mirantis.com> <1429184910-30186-5-git-send-email-pboldin@mirantis.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org To: "Xie, Huawei" , Pavel Boldin Return-path: Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com [74.125.82.46]) by dpdk.org (Postfix) with ESMTP id 5723CC498 for ; Wed, 17 Jun 2015 17:25:25 +0200 (CEST) Received: by wgbhy7 with SMTP id hy7so40057625wgb.2 for ; Wed, 17 Jun 2015 08:25:25 -0700 (PDT) In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 2015-05-07 06:54, Xie, Huawei: > On 4/16/2015 7:48 PM, Pavel Boldin wrote: > > + /* Closing the source_fd */ > > + ret = sys_close(eventfd_copy.source_fd); > Pavel: > Here we close the fd and re-install a new file on this fd later. > sys_close does all cleanup. > But, for instance, if we allocate new fd later, normally it will reuse > the just freed fds by sys_close, is there issue here? Pavel, Huawei, Could we come to a conclusion on this patch series please?