Received: by 2002:a25:e7d8:0:0:0:0:0 with SMTP id e207csp2130764ybh; Fri, 13 Mar 2020 13:22:37 -0700 (PDT) X-Google-Smtp-Source: ADFU+vs9CcqoubbihIvVm9wA0sHE5ufZXSpYdQLO9ckSmjb82XleRG5oyOMPlgqigmZnsrjGnSLN X-Received: by 2002:a54:4195:: with SMTP id 21mr8051469oiy.144.1584130957680; Fri, 13 Mar 2020 13:22:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1584130957; cv=none; d=google.com; s=arc-20160816; b=ZfF1W6nqhA7QGvD9L0ea4qnTfU+F+WRTGkJ+ueJb7AqTWmFElQ/cYfTgacA9be+oH0 n1crQFVJB/H4ddR3QpCPNM2Q7iQSTjKvdRcgNqoPxSxeJEr8DzJ/EFPvOYgoyoO2XB7C FFQtZ2ZUPgiIpJi2xbjRTer8VeouZ2W6GcYGqLR5sbCnWF0Lxq+7gmYhUO6NFZaO6qEc fzMcwMQMpk1c7eYwRJe97BZ4RKo+WSvS0G6HB6bj/4pr4ZOKUrziHXi0A08o2lRt+miX 7wsOn+GQAaD+JJcfwgIbTBoXp0vHcDYpSTfgT1bOD1A39vC5dyhPks1PI6EyzCeyBnPn XSEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=1dyaDXD6kKcsjU3cdaN9tJMCmO/tIPHlkK3dbzeZyfg=; b=sq7/Z/mu0T4+HzlQP9Gk6dzmZw8p4AKJhaVXauZOmWESxZjXBfKT1GRjbg091upvgg jUzgWNbcpwPRXrCJUmkKe7tk+gvrP5fEhFiOKEbwAWum6vTELHCggV4ghfG6Fd52l4TJ LRc/HlQTj99yoSdS2EJ+4ujfdY1mFGIV6yQbxwP94Rmytqu2BBgSizJnpbZL8Q6/EBYD 3+vrAzvBWG41jR0gLlIbRFMVxRYCuEBxKK9fo2Zz/pO+RuQPaaOpma278YMyVcbnuxbl l22HQLa50Xmt2MBvzQKyREpGBAKeAjK2j/eUAh7tTVsGMgK/dNexZ88H4p/XpUdGnKWR KP7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=IyxmDZ+M; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v127si2636395oib.25.2020.03.13.13.22.21; Fri, 13 Mar 2020 13:22:37 -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; dkim=pass header.i=@linux-foundation.org header.s=google header.b=IyxmDZ+M; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727333AbgCMUSv (ORCPT + 99 others); Fri, 13 Mar 2020 16:18:51 -0400 Received: from mail-lj1-f196.google.com ([209.85.208.196]:46214 "EHLO mail-lj1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726528AbgCMUSv (ORCPT ); Fri, 13 Mar 2020 16:18:51 -0400 Received: by mail-lj1-f196.google.com with SMTP id d23so11908220ljg.13 for ; Fri, 13 Mar 2020 13:18:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=1dyaDXD6kKcsjU3cdaN9tJMCmO/tIPHlkK3dbzeZyfg=; b=IyxmDZ+MInB7hJJiSvQ8M6SvkLSa6alEsIj47Hf+qqZ5CYMCROkdK8r49X48qyOGZZ DvHajJVv4/N9Xt+1+F5wfePvt104x04McIxOVjzj8DY7AvoCiMni8wf4vkLGHwgkAqKb NXkS+J6hgxY+A06g0a4K+hKEe7gxItoNaFqjc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=1dyaDXD6kKcsjU3cdaN9tJMCmO/tIPHlkK3dbzeZyfg=; b=cBbDI6Gxf32SddJXQn+XGCwSZSTKFnm/lvo7f3R3A30VQsSGGoh6bybU2kQFYFBIMZ eAQCY/5XaTKvm+caOP+U8aq53eMcK5taq4/Wi8+8PhnNubkQSN+uTrm/usyyjZmZD5fM uxJtFGuVFQHiNg0mpYG6cXWvUGCTA0WnDpWx6l1uBojJKel1OQxZsf6UZagkCAHG9wC/ qHYJmI8bO+Gbn00bQ4SXX6Ox5At3ZniL+rRU6EhLxRm4ZGLJfsLCWhu+6yX+3z0otEiO +F93Be/PZuqPUSqMqKxjw04/Y7Y7DO7t0vPjbIKJWGMC/bk5Fbm781sRF6bXEjQMSiA/ 0vew== X-Gm-Message-State: ANhLgQ29BLyxSnHJxaPJ695ie8IF47lqoCv69hlLci0/20yP8P/YxbDA m5lRXGgt+4ss2X3nT2OxRTkNrsjsgY0= X-Received: by 2002:a2e:9cc1:: with SMTP id g1mr9459574ljj.152.1584130728095; Fri, 13 Mar 2020 13:18:48 -0700 (PDT) Received: from mail-lf1-f52.google.com (mail-lf1-f52.google.com. [209.85.167.52]) by smtp.gmail.com with ESMTPSA id b23sm9282494lfi.55.2020.03.13.13.18.46 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 13 Mar 2020 13:18:47 -0700 (PDT) Received: by mail-lf1-f52.google.com with SMTP id 5so1811910lfr.2 for ; Fri, 13 Mar 2020 13:18:46 -0700 (PDT) X-Received: by 2002:ac2:5508:: with SMTP id j8mr9590741lfk.31.1584130726499; Fri, 13 Mar 2020 13:18:46 -0700 (PDT) MIME-Version: 1.0 References: <00e5ab7d-f0ad-bc94-204a-d2b7fb88f594@fb.com> In-Reply-To: <00e5ab7d-f0ad-bc94-204a-d2b7fb88f594@fb.com> From: Linus Torvalds Date: Fri, 13 Mar 2020 13:18:30 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] io_uring fixes for 5.6-rc To: Jens Axboe , "Paul E. McKenney" , Tejun Heo Cc: io-uring , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 13, 2020 at 10:50 AM Jens Axboe wrote: > > Just a single fix here, improving the RCU callback ordering from last > week. After a bit more perusing by Paul, he poked a hole in the > original. Ouch. If I read this patch correctly, you're now adding a rcu_barrier() onto the system workqueue for each io_uring context freeing op. This makes me worry: - I think system_wq is unordered, so does it even guarantee that the rcu_barrier happens after whatever work you're expecting it to be after? Or is it using a workqueue not because it wants to serialize with any other work, but because it needs to use rcu_barrier in a context where it can't sleep? But the commit message does seem to imply that ordering is important.. - doesn't this have the potential to flood the system_wq be full of flushing things that all could take a while.. I've pulled it, and it may all be correct, just chalk this message up to "Linus got nervous looking at it". Added Paul and Tejun to the participants explicitly. Linus