Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758758AbcC3ILD (ORCPT ); Wed, 30 Mar 2016 04:11:03 -0400 Received: from LGEAMRELO12.lge.com ([156.147.23.52]:56064 "EHLO lgeamrelo12.lge.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753336AbcC3IK7 (ORCPT ); Wed, 30 Mar 2016 04:10:59 -0400 X-Original-SENDERIP: 156.147.1.121 X-Original-MAILFROM: iamjoonsoo.kim@lge.com X-Original-SENDERIP: 10.177.222.138 X-Original-MAILFROM: iamjoonsoo.kim@lge.com Date: Wed, 30 Mar 2016 17:12:58 +0900 From: Joonsoo Kim To: Christoph Lameter Cc: Andrew Morton , Pekka Enberg , David Rientjes , Jesper Dangaard Brouer , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 04/11] mm/slab: factor out kmem_cache_node initialization code Message-ID: <20160330081258.GC1678@js1304-P5Q-DELUXE> References: <1459142821-20303-1-git-send-email-iamjoonsoo.kim@lge.com> <1459142821-20303-5-git-send-email-iamjoonsoo.kim@lge.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 526 Lines: 22 On Mon, Mar 28, 2016 at 07:56:15PM -0500, Christoph Lameter wrote: > On Mon, 28 Mar 2016, js1304@gmail.com wrote: > > > From: Joonsoo Kim > > - spin_lock_irq(&n->list_lock); > > - n->free_limit = > > - (1 + nr_cpus_node(node)) * > > - cachep->batchcount + cachep->num; > > - spin_unlock_irq(&n->list_lock); > > + ret = init_cache_node(cachep, node, GFP_KERNEL); > > + if (ret) > > + return ret; > > Drop ret and do a > > return init_cache_node(...); > > instead? Will do it. Thanks.