From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757884AbaITTBr (ORCPT ); Sat, 20 Sep 2014 15:01:47 -0400 Received: from bombadil.infradead.org ([198.137.202.9]:50695 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757816AbaITTBn (ORCPT ); Sat, 20 Sep 2014 15:01:43 -0400 Date: Sat, 20 Sep 2014 20:33:26 +0200 From: Peter Zijlstra To: Kirill Tkhai Cc: linux-kernel@vger.kernel.org, Ingo Molnar , Kirill Tkhai Subject: Re: [PATCH 2/7] sched: Fix picking a task switching on other cpu (__ARCH_WANT_UNLOCKED_CTXSW) Message-ID: <20140920183326.GT2832@worktop.localdomain> References: <20140920165116.16299.1381.stgit@localhost> <20140920165122.16299.31150.stgit@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20140920165122.16299.31150.stgit@localhost> User-Agent: Mutt/1.5.22.1 (2013-10-16) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 20, 2014 at 08:51:22PM +0400, Kirill Tkhai wrote: > From: Kirill Tkhai > > We may pick a task which is in context_switch() on other cpu at the moment. > Parallel using of a single stack by two processes is not a good idea. Please elaborate on who exactly that might happen. Its best to have comprehensive changelogs for issues that fix races.