Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp11156379ybi; Thu, 25 Jul 2019 10:59:25 -0700 (PDT) X-Google-Smtp-Source: APXvYqxDh3xeTFTgs7HEihVOiFUi3L/8YNnqBYwsO+0emUP22Ig7cNOTMo8aFElcuXcXA1fI4t3t X-Received: by 2002:a17:902:8689:: with SMTP id g9mr85928903plo.252.1564077565595; Thu, 25 Jul 2019 10:59:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564077565; cv=none; d=google.com; s=arc-20160816; b=0YxYaHWre4VD9SA7eGP5+stjoJ9eWpfygWUOLCztnRvV0Okf/i3vvEykteDHlD2kD6 zebWXrF2YCAniAQf5UEi5AWcC7ytWiSkwkdcpCGCieIEZeZ6mJLOi8TzC2rFw+I3YGBM umYcbl69QNkrK3fK2ebbTENcJUPt+FB2+/q/OTYHonYhlOWiXvk8LeeV2KKeo5YZlcYE mBG3YP3omP2Z0rD80umO6N9MPauXbeYS2HePK60wgN1PJMhMQvOJjz9xoetKZLQc5KGr cGFfRo0MC+Cvm1kJBGKCnMN81nzKIPSDK+/4eH1FhuOgZNkLYLBHrbNEAaPwREpA1Rs3 eLFQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=nyRex2jcekjMUD0qDDSF97miavYbe8l/Na9XGXfffcI=; b=hBFhNRNnh1GOGbITDVQZNLqVG09WqOJ+hklCa04RwZfQmytY0QhhOpofEv+Ymtfzml QC7HOVT/oSHHylnhMn2tC/qh1w8T9y1hWBGJjq6ikQGxq0L9O0PD5ydpTGi4D1n2Yn86 q3lxBrbU5sHeISPSkZImIQDWw7k9btPr25Z2I4cgQdKXsLb3FscWEhvP4p7OMuPhdR9K 51rjI15KHxAa1KI05RYyfLr51ya1B2NE4VL2D30ogTpaHOpDPM+hur7xrgysvojCweu1 XDnboAz4P8tyJqekRbA7kVK7aF6xCIHwmq3sArn5vEtWnoTbA0lu0flAT7kIbsnVruXr u3gQ== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 14si12414601pga.452.2019.07.25.10.59.10; Thu, 25 Jul 2019 10:59:25 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728233AbfGYOZ7 (ORCPT + 99 others); Thu, 25 Jul 2019 10:25:59 -0400 Received: from mx1.redhat.com ([209.132.183.28]:37208 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727937AbfGYOZ6 (ORCPT ); Thu, 25 Jul 2019 10:25:58 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0E40A335E8; Thu, 25 Jul 2019 14:25:58 +0000 (UTC) Received: from [10.72.12.18] (ovpn-12-18.pek2.redhat.com [10.72.12.18]) by smtp.corp.redhat.com (Postfix) with ESMTP id 910435D71A; Thu, 25 Jul 2019 14:25:48 +0000 (UTC) Subject: Re: WARNING in __mmdrop To: "Michael S. Tsirkin" Cc: syzbot , aarcange@redhat.com, akpm@linux-foundation.org, christian@brauner.io, davem@davemloft.net, ebiederm@xmission.com, elena.reshetova@intel.com, guro@fb.com, hch@infradead.org, james.bottomley@hansenpartnership.com, jglisse@redhat.com, keescook@chromium.org, ldv@altlinux.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-mm@kvack.org, linux-parisc@vger.kernel.org, luto@amacapital.net, mhocko@suse.com, mingo@kernel.org, namit@vmware.com, peterz@infradead.org, syzkaller-bugs@googlegroups.com, viro@zeniv.linux.org.uk, wad@chromium.org References: <20190723032024-mutt-send-email-mst@kernel.org> <1d14de4d-0133-1614-9f64-3ded381de04e@redhat.com> <20190723035725-mutt-send-email-mst@kernel.org> <3f4178f1-0d71-e032-0f1f-802428ceca59@redhat.com> <20190723051828-mutt-send-email-mst@kernel.org> <20190725012149-mutt-send-email-mst@kernel.org> <55e8930c-2695-365f-a07b-3ad169654d28@redhat.com> <20190725042651-mutt-send-email-mst@kernel.org> <84bb2e31-0606-adff-cf2a-e1878225a847@redhat.com> <20190725092332-mutt-send-email-mst@kernel.org> From: Jason Wang Message-ID: <11802a8a-ce41-f427-63d5-b6a4cf96bb3f@redhat.com> Date: Thu, 25 Jul 2019 22:25:25 +0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: <20190725092332-mutt-send-email-mst@kernel.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Thu, 25 Jul 2019 14:25:58 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019/7/25 下午9:26, Michael S. Tsirkin wrote: >> Exactly, and that's the reason actually I use synchronize_rcu() there. >> >> So the concern is still the possible synchronize_expedited()? > I think synchronize_srcu_expedited. > > synchronize_expedited sends lots of IPI and is bad for realtime VMs. > >> Can I do this >> on through another series on top of the incoming V2? >> >> Thanks >> > The question is this: is this still a gain if we switch to the > more expensive srcu? If yes then we can keep the feature on, I think we only care about the cost on srcu_read_lock() which looks pretty tiny form my point of view. Which is basically a READ_ONCE() + WRITE_ONCE(). Of course I can benchmark to see the difference. > if not we'll put it off until next release and think > of better solutions. rcu->srcu is just a find and replace, > don't see why we need to defer that. can be a separate patch > for sure, but we need to know how well it works. I think I get here, let me try to do that in V2 and let's see the numbers. Thanks