From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH] vhost: Fix `struct file' leakage in `eventfd_link' Date: Fri, 27 Mar 2015 14:15:25 +0100 Message-ID: <4151601.EsHxSRlnWS@xps13> References: <1427115225-14489-1-git-send-email-pboldin@mirantis.com> <15186425.TaoBqciV4t@xps13> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev-VfR2kkLFssw@public.gmane.org To: Pavel Boldin Return-path: In-Reply-To: List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" > > > > Due to increased `struct file's reference counter subsequent call > > > > to `filp_close' does not free the `struct file'. Prepend `fput' call > > > > to decrease the reference counter. > > > > > > > > Signed-off-by: Pavel Boldin > > > > > > Acked-by Huawei Xie > > > > Applied, thanks > > What should I do with the refactoring patch in your opinion? > > Should I split it in parts to ease review? I didn't review it so I have no good advice. But in general, it's better to split patches in logic units if it makes sense. Note that we are closing 2.0. Refactoring patches are deffered to 2.1.