Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752500AbbBKPAm (ORCPT ); Wed, 11 Feb 2015 10:00:42 -0500 Received: from resqmta-ch2-04v.sys.comcast.net ([69.252.207.36]:59418 "EHLO resqmta-ch2-04v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751878AbbBKPAk (ORCPT ); Wed, 11 Feb 2015 10:00:40 -0500 Date: Wed, 11 Feb 2015 09:00:39 -0600 (CST) From: Christoph Lameter X-X-Sender: cl@gentwo.org To: Vladimir Davydov cc: Andrew Morton , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Huang Ying , Pekka Enberg , David Rientjes , Joonsoo Kim Subject: Re: [PATCH -mm] slub: kmem_cache_shrink: init discard list after freeing slabs In-Reply-To: Message-ID: References: <1423627463.5968.99.camel@intel.com> <1423642582-23553-1-git-send-email-vdavydov@parallels.com> Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 431 Lines: 10 Hmmmm... Thinking about this some more. It may be better to initialize the list head at the beginning of the loop? Also the promote array should also be initialized in the loop right? -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/