Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp2227416ybv; Fri, 14 Feb 2020 14:08:34 -0800 (PST) X-Google-Smtp-Source: APXvYqwgfdGMw826qrjvR7cKb1XJPjoNC/t2TFcuMiP2MPO1mL36is7EjeCnB7/7Kq05PoeJDJw/ X-Received: by 2002:aca:b703:: with SMTP id h3mr1675394oif.148.1581718114694; Fri, 14 Feb 2020 14:08:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581718114; cv=none; d=google.com; s=arc-20160816; b=gQLbgTqA1JsKFMTkwHIdQ3n9/M8fTyHJYVhgZ9FaVjTQSzb4nrfqE/XmrtdZGQ1ZO9 8DGZhHqVQHHIQKAiGajuO4q2s+/ucHhRPr0mFiP7AvQs6peoDkbptJ8IZhFg8+WqA6qM xL/86gNufwLEmfwmJN1GwIvaY4CozYrn733ph7YGCzgUGiNsEB/3XIBAxIJMT7gAtYVp MK3EJSAN+vmruwnjE4VgYggDcalLG8ZkiAMWjoplrWXqMupwmdE4xhm2QCbyx+Mfx5JR 4Izr6mL8HBEoc/7cLdMyZjRlbp9TFk7Y5XfXqAj3sUSuA28FMFb0eRYs2yAyfshWoCLD xmkw== 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=EOnxQ29nW6q/oFLiEGQt+o0NnkrJlvHBiIqJVTvoqsg=; b=emnXZdP0N9ubRM0pYwNKn3vjuxd+kVpiyEOxwC+lu1bLg+w47Bru2FZi+GaVlQgiz7 1F6lwfVUwSEt72anbcKTvotexczMYJPjToiJUTWPZY8zUHLDnBWan6b+8IFPuV2ks5WX BbUfJCbKEXUpgxVWb1m5us6J+L0gDd/6DdclLxSUUpbdl0/LUNYTu9KtvoGfulP3WLpQ tA92vF1fIQI7CXHwTdJ5HI590MP96iOehmSFnNA8/rzw+XfZ26oIyWSJWg1HRYF+Cg4J vLpDIMACYtfQYHjdmd/mYzQu2pI5j/A+JhulA51E+UCuO3+sZEaz+8pVH+3ToIjlE9kV u5EQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=gotL2+qr; 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 e77si3599468ote.153.2020.02.14.14.08.21; Fri, 14 Feb 2020 14:08:34 -0800 (PST) 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=gotL2+qr; 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 S1727573AbgBNWIJ (ORCPT + 99 others); Fri, 14 Feb 2020 17:08:09 -0500 Received: from mail-lf1-f66.google.com ([209.85.167.66]:34167 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726101AbgBNWIJ (ORCPT ); Fri, 14 Feb 2020 17:08:09 -0500 Received: by mail-lf1-f66.google.com with SMTP id l18so7788886lfc.1 for ; Fri, 14 Feb 2020 14:08:07 -0800 (PST) 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=EOnxQ29nW6q/oFLiEGQt+o0NnkrJlvHBiIqJVTvoqsg=; b=gotL2+qrzLvoZp38NJ8oaGMKiVnhONIgVhjei+CfhjB2fkGaJA3BPayPjJ3tfO+pCQ ScJfGp7rS7PAQHVIRnUUvDLEPTgGSx5kfeJRt0mDgPX7RHAKN2rz3CnedLufppr9whEE balgyURvaANBJj1oJGjUjALE/YaITta9HmOsU= 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=EOnxQ29nW6q/oFLiEGQt+o0NnkrJlvHBiIqJVTvoqsg=; b=QR+wnefQdYqc8Hk94IvhwFFCt7wE4sz92Bq6FY1wskhd1jD/uTzCfb79UhoaZn+Yhh +FNiTZ4fLYPsKzVEQcTT9zbqtte5aku5o947I0L+fjJlrPT3JfxvkU1cmIJryIrbfZyU NyfMuLN+8iENScNDXNlylafVRJg0pX8xNYFw8X0ymUbN8HsVZHpUwAFo88/tcyKEnCpx 0GwRpSW/JA+XVpx3x7GvJOS4wkhmPrJvODN8JSmLrEMrG3HbioB1AFPfzelbBXFqPaPb mTfPibt4zBT8DGssQOUh5V2wl+8m7oJBvmf5t2D6n/ZLhVrWMKARXd4pDYhpHDkwJjzK +NaA== X-Gm-Message-State: APjAAAXVaI+Zf6gsTW+GAMV1CAJvIWbBjnVmH8m2m43vWXqP7BPVX9Qx 5lcGiJTfBt3z4FQDCDwQgYQwWlZl7RM= X-Received: by 2002:ac2:4a89:: with SMTP id l9mr2604515lfp.121.1581718086386; Fri, 14 Feb 2020 14:08:06 -0800 (PST) Received: from mail-lf1-f47.google.com (mail-lf1-f47.google.com. [209.85.167.47]) by smtp.gmail.com with ESMTPSA id w29sm4967069ljd.99.2020.02.14.14.08.05 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 14 Feb 2020 14:08:05 -0800 (PST) Received: by mail-lf1-f47.google.com with SMTP id y19so7741706lfl.9 for ; Fri, 14 Feb 2020 14:08:05 -0800 (PST) X-Received: by 2002:a19:c7d8:: with SMTP id x207mr2719756lff.142.1581718084244; Fri, 14 Feb 2020 14:08:04 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Linus Torvalds Date: Fri, 14 Feb 2020 14:07:48 -0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] io_uring fixes for 5.6-rc2 To: Jens Axboe 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, Feb 14, 2020 at 8:45 AM Jens Axboe wrote: > > Here's a set of fixes for io_uring that should go into this release. Whaa? for_each_node(node) { + if (!node_online(node)) + continue; that's just silly. We have 'for_each_online_node()' for this. There's something like four patterns of that pointless thing. And in io_wq_create(), do you really want to allocate that wqe for nodes that aren't online? Right now you _allocate_ the node data for them (using a non-node-specific allocation), but then you won't actually create the thread for them io_wq_manager(). Plus if the node online status changes, it looks like you'll mess up _anyway_, in that io_wq_manager() will first create the workers on one set of nodes, but then perhaps set the state flags for a completely different set of nodes if some onlining/offlining has happened. I've pulled this, but Jens, you need to be more careful. This all looks like completely random state that nobody spent any time thinking about. Seriously, this "io_uring FIXES ONLY" needs to be stricter than what you seem to be doing here. This "fix" is opening up a lot of new possibilities for inconsistencies in the data structures. Linus