Received: by 10.213.65.68 with SMTP id h4csp1221753imn; Wed, 14 Mar 2018 13:20:30 -0700 (PDT) X-Google-Smtp-Source: AG47ELs9B+4KfRhGQmH6YBt5iqSF0ayPqlL7wGD7Cof4vcH5fkLlVNgovngqsT4bUVShfiA1HHKQ X-Received: by 2002:a17:902:680c:: with SMTP id h12-v6mr5422238plk.46.1521058830141; Wed, 14 Mar 2018 13:20:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521058830; cv=none; d=google.com; s=arc-20160816; b=Uhiy3f87/H4eFk9MPUW8rbc8hG31GV1Yq7prwO1KLNV+6Kgcu2TdB6/B66+4MPYr4A xJkYcaKfjKbtU6734aHHKIzVHPiyuch3SziD1HKhZ1duHO5ZUEcOhctVm2bVmVxsAPvB xu3jiaglytG512ufD6LRKyyiXeJ5ydwJkO0TEtDeR1+K2nJfLJhdnWnJtAVBUfQF7HY4 pLgI1aOdb/ABope4qmUuCTRWBk5VIM1Y7t1NwD4lrFZ6LIbua86dz33aHDglrP/m4EYS pxUp43HYk7b1uHUMfjUWTdNSp54bbHzf+rjteMF+3JR45ju0KYEkJzNU9rjnnjgWcl/c sc5w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:newsgroups:cc:to:subject :arc-authentication-results; bh=FLx5SHiwI9RrGBqhmxZTubcFBXk1x6CIaumVTTigA1U=; b=skNc1eRgNhvcKG5g1d0/hCYgnntEhY4+7j04Bk7mt77xtE7EnZ2q2J91e1z6mjRXdx z7bXUGjpe7xUeT9V1LhTTOLEIJZo3DooXo+ws/5/utMLblJCqZpXnvDjX7kKzmhtG/Q8 Jx5ncxVhJ5Fi/Tx1Jmkd2PYFEp8izkFpc9DWrWpCkq176OUdjOdry1AnOF5uaKcKgKAG HtlazvOel0+nUzWvkaXM4LgbnJyqmwPSwpeg9c6iDkTWATEXIa2XuS6tQZDbmrMuumfe alQdzYcbM21gbTAFL1+QRKeX67xhMi0cUVWI6mlFlCXJLM5SykRYusfNUYQqiNd3Ioom eoqA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r69si1500124pfj.95.2018.03.14.13.20.15; Wed, 14 Mar 2018 13:20:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=synopsys.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751970AbeCNUTM (ORCPT + 99 others); Wed, 14 Mar 2018 16:19:12 -0400 Received: from us01smtprelay-2.synopsys.com ([198.182.47.9]:41824 "EHLO smtprelay.synopsys.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751381AbeCNUTK (ORCPT ); Wed, 14 Mar 2018 16:19:10 -0400 Received: from mailhost.synopsys.com (mailhost1.synopsys.com [10.12.238.239]) by smtprelay.synopsys.com (Postfix) with ESMTP id 1A82324E0E91; Wed, 14 Mar 2018 13:19:10 -0700 (PDT) Received: from mailhost.synopsys.com (localhost [127.0.0.1]) by mailhost.synopsys.com (Postfix) with ESMTP id 044CD5331; Wed, 14 Mar 2018 13:19:10 -0700 (PDT) Received: from US01WXQAHTC1.internal.synopsys.com (us01wxqahtc1.internal.synopsys.com [10.12.238.230]) by mailhost.synopsys.com (Postfix) with ESMTP id EA22E532F; Wed, 14 Mar 2018 13:19:09 -0700 (PDT) Received: from IN01WEHTCB.internal.synopsys.com (10.144.199.106) by US01WXQAHTC1.internal.synopsys.com (10.12.238.230) with Microsoft SMTP Server (TLS) id 14.3.361.1; Wed, 14 Mar 2018 13:19:09 -0700 Received: from IN01WEHTCA.internal.synopsys.com (10.144.199.103) by IN01WEHTCB.internal.synopsys.com (10.144.199.105) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 15 Mar 2018 01:49:07 +0530 Received: from [10.10.161.84] (10.10.161.84) by IN01WEHTCA.internal.synopsys.com (10.144.199.243) with Microsoft SMTP Server (TLS) id 14.3.361.1; Thu, 15 Mar 2018 01:49:06 +0530 Subject: Re: Do we need to disable preemption in flush_tlb_range()? To: Alexey Brodkin CC: Peter Zijlstra , "linux-arch@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-snps-arc@lists.infradead.org" Newsgroups: gmane.linux.kernel,gmane.linux.kernel.cross-arch,gmane.linux.kernel.arc References: <1519917189.13866.6.camel@synopsys.com> From: Vineet Gupta Message-ID: <5a5c67c1-9f45-f908-2c8d-0914cd616a18@synopsys.com> Date: Wed, 14 Mar 2018 13:19:01 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <1519917189.13866.6.camel@synopsys.com> Content-Type: text/plain; charset="utf-8"; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.10.161.84] Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org +CC Peter since we have his attention ;-) On 03/01/2018 07:13 AM, Alexey Brodkin wrote: > Hi Vineet, > > Just noticed that in comments for smp_call_function_many() it is said that > preemption must be disabled during its execution. And that function gets executed > among other ways like that: > -------------------------->8----------------------- > flush_tlb_range() > -> on_each_cpu_mask() > -> smp_call_function_many() > -------------------------->8----------------------- In general I prefer not to - Peter what say you ? > > I'm not seeing right now any real problem with current implementation but > some architectures do that thus the question. > > -Alexey >