From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932238AbcCHPBN (ORCPT ); Tue, 8 Mar 2016 10:01:13 -0500 Received: from resqmta-ch2-09v.sys.comcast.net ([69.252.207.41]:47794 "EHLO resqmta-ch2-09v.sys.comcast.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754138AbcCHPBA (ORCPT ); Tue, 8 Mar 2016 10:01:00 -0500 Date: Tue, 8 Mar 2016 09:00:57 -0600 (CST) From: Christoph Lameter X-X-Sender: cl@east.gentwo.org To: Vineet Gupta cc: linux-mm@kvack.org, Pekka Enberg , David Rientjes , Joonsoo Kim , Andrew Morton , Noam Camus , stable@vger.kernel.org, linux-kernel@vger.kernel.org, linux-snps-arc@lists.infradead.org Subject: Re: [PATCH] mm: slub: Ensure that slab_unlock() is atomic In-Reply-To: <1457447457-25878-1-git-send-email-vgupta@synopsys.com> Message-ID: References: <1457447457-25878-1-git-send-email-vgupta@synopsys.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 On Tue, 8 Mar 2016, Vineet Gupta wrote: > This in turn happened because slab_unlock() doesn't serialize properly > (doesn't use atomic clear) with a concurrent running > slab_lock()->test_and_set_bit() This is intentional because of the increased latency of atomic instructions. Why would the unlock need to be atomic? This patch will cause regressions. Guess this is an architecture specific issue of modified cachelines not becoming visible to other processors?