From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-io0-f174.google.com (mail-io0-f174.google.com [209.85.223.174]) by kanga.kvack.org (Postfix) with ESMTP id 7E7EB6B0038 for ; Wed, 9 Sep 2015 21:47:52 -0400 (EDT) Received: by ioiz6 with SMTP id z6so43919989ioi.2 for ; Wed, 09 Sep 2015 18:47:52 -0700 (PDT) Received: from resqmta-ch2-04v.sys.comcast.net (resqmta-ch2-04v.sys.comcast.net. [2001:558:fe21:29:69:252:207:36]) by mx.google.com with ESMTPS id k125si8367965ioe.203.2015.09.09.18.47.51 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 09 Sep 2015 18:47:51 -0700 (PDT) Date: Wed, 9 Sep 2015 20:47:50 -0500 (CDT) From: Christoph Lameter Subject: Re: Store Buffers (was Re: Is it OK to pass non-acquired objects to kfree?) In-Reply-To: <20150910011028.GY4029@linux.vnet.ibm.com> Message-ID: References: <20150909184415.GJ4029@linux.vnet.ibm.com> <20150909203642.GO4029@linux.vnet.ibm.com> <20150910000847.GV4029@linux.vnet.ibm.com> <20150910011028.GY4029@linux.vnet.ibm.com> Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: "Paul E. McKenney" Cc: Dmitry Vyukov , Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , "linux-mm@kvack.org" , Andrey Konovalov , Alexander Potapenko On Wed, 9 Sep 2015, Paul E. McKenney wrote: > > But then again kfree() contains a barrier() which would block the compiler > > from moving anything into the free path. > > That barrier() is implicit in the fact that kfree() is an external > function? Or are my eyes failing me? kfree at some point calls slab_free(). That function has a barrier. All free operations go through it. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org