Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp12114079ybi; Fri, 26 Jul 2019 05:02:43 -0700 (PDT) X-Google-Smtp-Source: APXvYqwxXPPPbPw/h+ZyQbhwdAcpLzhTsCdFM8DgAowFtWZqnpwyERaO0YjdOMSJQAakqjhrdo0r X-Received: by 2002:a17:902:361:: with SMTP id 88mr97424457pld.123.1564142563243; Fri, 26 Jul 2019 05:02:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1564142563; cv=none; d=google.com; s=arc-20160816; b=HjwvEfKdbBWfM9OKov1BTog8OHjDh1YSY222yybVf91ZzecfyF1+E7b6Z7XgwTfs+L b+UVkXOYTNn+WL9UPYl52OvJK8Im2GTibVjpcW4npkk60rgHNKknkUg/b+gx8TS5kzWN rVFgvfFLB4VHdn1QaDtoKpXPI0Yp/XDfj0fN7G4nyAO94/cFErsXbHVK+0c1RjPPiHql 01J2NsYGceZQSZH+LOkgl2FwG+H0hsytLxPqcf/HrAlpicw10XpLqt/3BElgku5ry2tW gPeaAkIsBuo8Nz7cDCIGHA1zamHnxOFNphcJ+Vm+y7Qhh5QZTqO7fTX6cto0G2RV7DCR jgQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=i8wjsn/J7AjCMbxusJs+A5ywmyPLK0X8wVGP+ZIy8uY=; b=X4DDEmWm3zAxmr3r1elT8C6s0X0BSUTYcIwuMhzD+kwe127voCDtQ2lrZKSUSDZwc1 3EPXvqly/IYTWh6HQN/3ItTXfWOd+rPrynbq4TOKTKanDyj3XVIyA0G3ddffkRSLGBP2 LeIrxVUYuneYPKt94nlxXVNTr3yzO9L5qDZQWeBvRYaRrviYR4+GF78dCBrU9AaWze5b ZF+GRDg4oUslTaeoFjY+D3EC/py3XJVheyR2OihgnE9nsaVE7MbY3t0rLhjNhHMhRqT1 MhkY74Ejh3iu7IHntf0aF6nALpTBKrA6MOEjnZh4bxAuug2l7Y0RPC12n9sVdd6X/0ZR tCIg== 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 w10si18571191plz.48.2019.07.26.05.02.27; Fri, 26 Jul 2019 05:02:43 -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 S1726739AbfGZLta (ORCPT + 99 others); Fri, 26 Jul 2019 07:49:30 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:45781 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726705AbfGZLta (ORCPT ); Fri, 26 Jul 2019 07:49:30 -0400 Received: by mail-qt1-f193.google.com with SMTP id x22so47328536qtp.12 for ; Fri, 26 Jul 2019 04:49:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to; bh=i8wjsn/J7AjCMbxusJs+A5ywmyPLK0X8wVGP+ZIy8uY=; b=M7ct7aidq0IfzXTkTtp/hONjDzTYLO4EXK7RvYANPfmXTRbEq5T/V+NYrAgJtACIJL xzwlwtt7D2+pG01kcd01KHKRr5ttePY9Glcyp189/SA9/S3obB7TsypXhrz7Ha62JWAM TMwFuIB+sb9UMpfidufojiRWcslmCvhqW3Myr3JhZvau0nS351RfDV4fzrhd2bjJUBij Fjoyxm9fCM41F7rUaT0zYSUEwMnEoZ5HjxcoNigzvbMea0b0qmdJUPDDUTxYR283aURf RlHfa0q2KNQzREe6Gf8JEixHI54rugAXTxxd6sz5g9CuSOfK6hs0c9PXChoMuC9zBi6g 0Vag== X-Gm-Message-State: APjAAAXawDshHeSPhJ7WGJitfA3aPctEGLRnaDmgx789Pag9adOsUpS2 arm1rl6m5X1YuyW11DJFzMqZUw== X-Received: by 2002:ac8:32e8:: with SMTP id a37mr66953459qtb.231.1564141769219; Fri, 26 Jul 2019 04:49:29 -0700 (PDT) Received: from redhat.com ([212.92.104.165]) by smtp.gmail.com with ESMTPSA id f14sm21725527qto.11.2019.07.26.04.49.22 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Fri, 26 Jul 2019 04:49:28 -0700 (PDT) Date: Fri, 26 Jul 2019 07:49:19 -0400 From: "Michael S. Tsirkin" To: Jason Wang 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 Subject: Re: WARNING in __mmdrop Message-ID: <20190726074644-mutt-send-email-mst@kernel.org> References: <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> <11802a8a-ce41-f427-63d5-b6a4cf96bb3f@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <11802a8a-ce41-f427-63d5-b6a4cf96bb3f@redhat.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jul 25, 2019 at 10:25:25PM +0800, Jason Wang wrote: > > 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 There's one other thing that bothers me, and that is that for large rings which are not physically contiguous we don't implement the optimization. For sure, that can wait, but I think eventually we should vmap large rings. -- MST