Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp506157pxb; Thu, 2 Sep 2021 08:53:17 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxybffxJoMRO4ABzzo98tL4pdcgSXb3ZtSoA0VIU9NEiyipMR9QTorUrQ1IJWwcUZarMFSk X-Received: by 2002:a17:906:38ce:: with SMTP id r14mr4424496ejd.268.1630597997147; Thu, 02 Sep 2021 08:53:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630597997; cv=none; d=google.com; s=arc-20160816; b=MvH2mb6cM/xGY2LiG+Gc16B4tgGOyt+QgwVd5INLG+n3Fbhnc5fKWD73SpBoDShwCP ncIyRX7tC2oqfInuXeV/5Ul5SK2ElxIuGgXQzoArHeJTAfidJGK7tdS/+Yh7mQeGbUuy YeK8OCbwmN/QW58D+H+2r/dI1pAyZ9yjgsnJrLsliQO7IsgaeOR17Z7FNiTRwcY6LH/5 LyWnat+vDt9NXItbB5nhSHiacXTx1z7JBiBGybaWvUV7qH2+go/kUd5agAVXibldAlHf dgBoBIRSpoVZDd+XigoZXdz0GQjCEwSwFOwpvQNwx/EDSwZZ5la1mrZUoIDrWL9xZi7V fGmw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=5wsPeIhzYXabpZGJAWeTrSQOBVTFZSeI6/V+A/PKS+M=; b=BaYa5A2m5pFX93libxWbjtNg0821A1Jcdq6h1CX/436/5Sj/xsj5MVKUGth6j4hgXU bvGl/ZvjVkJwlFxAkDO0KS7d5DOD+ZNiFiKeEUeL5oc+flbQotbGrCxTf3E2BlmPWM7P tJSYklI+bdGPw8x+wi/Yc4+ntuyOnY6fJyWAyu0umlotf5kn6vtc+UPbPCCPS2VhmwrH aOWFdq981QjAlUxlzCh2hmBXdIwkAvAA3GXp6lYiuBPY/yzlPfpxxkJwdU4r7vu5vTm1 D01pqoXGjBTsdpw4gri3e8csGm08W/eY7FmusBXI0YoH0DhCgEvgiLCGv0MmSvz3mmiI ZGyQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=ERUiyJet; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gs30si2027076ejc.274.2021.09.02.08.52.26; Thu, 02 Sep 2021 08:53:17 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=ERUiyJet; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345873AbhIBPtC (ORCPT + 99 others); Thu, 2 Sep 2021 11:49:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38072 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345837AbhIBPtC (ORCPT ); Thu, 2 Sep 2021 11:49:02 -0400 Received: from mail-lf1-x135.google.com (mail-lf1-x135.google.com [IPv6:2a00:1450:4864:20::135]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9B1F5C061757 for ; Thu, 2 Sep 2021 08:48:03 -0700 (PDT) Received: by mail-lf1-x135.google.com with SMTP id f18so5257713lfk.12 for ; Thu, 02 Sep 2021 08:48:03 -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=5wsPeIhzYXabpZGJAWeTrSQOBVTFZSeI6/V+A/PKS+M=; b=ERUiyJetgJfhv6CSzrx6t3BC3sUidOHQEL/eDPlppAa2ihMq3Wb2UVSXXDUuPuaU1A 4/XvqW5lS+oI+M7I2xMssmbTqkpxCPxhR1wO2lWfQBg4oc+w/Mm4258ukKLi75PZRBLY Wn2b943/0K9fY7TmwJ8wE1L+ipYVBjxFcZqsQ= 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=5wsPeIhzYXabpZGJAWeTrSQOBVTFZSeI6/V+A/PKS+M=; b=eAm7NmOR9yqcE90vpLMdVQXgOuBynr1oiiDQedggNPuTG+gqCpj5b/cKHgQC2b2Uec eByE9j5ZnuQ0TXvygQjt+O8tUpW/L4dkSFhJXVRy5b9rJvtwNi8DYV+8XAJi3edw+eEY L0bMqPUrGXjC5/c7CR8N391DVO1JfdZ3CSOy30H3chDwQpH3KJcB7swPYi7hxHIbYhQE uDmBrzkJ9+EFXUmf3hlSbvjoqrKOF0X9Ik7OFQmfWwL+3xsbR1Nt3ZlDcSgpQodPFWTI oqdUw2AhP6VI9Pw9XaTr3++gfVzxF6bIwL5vntEJZi8zOsbulXEEJePJW3JDtCAdPu9r nTMA== X-Gm-Message-State: AOAM530Bh2ISmPZw2XuSUtGDNcVpJpfHxxUXatS3Sz01olgL6ySexwPx D3D18Aex57zr8D8y+GpmU3g5LqY0telgs1UT X-Received: by 2002:a05:6512:1289:: with SMTP id u9mr3192007lfs.296.1630597680799; Thu, 02 Sep 2021 08:48:00 -0700 (PDT) Received: from mail-lf1-f50.google.com (mail-lf1-f50.google.com. [209.85.167.50]) by smtp.gmail.com with ESMTPSA id x34sm231041lfa.265.2021.09.02.08.47.58 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 02 Sep 2021 08:47:59 -0700 (PDT) Received: by mail-lf1-f50.google.com with SMTP id t12so5120314lfg.9 for ; Thu, 02 Sep 2021 08:47:58 -0700 (PDT) X-Received: by 2002:a05:6512:228f:: with SMTP id f15mr3148224lfu.253.1630597678499; Thu, 02 Sep 2021 08:47:58 -0700 (PDT) MIME-Version: 1.0 References: <20210831211847.GC9959@magnolia> In-Reply-To: <20210831211847.GC9959@magnolia> From: Linus Torvalds Date: Thu, 2 Sep 2021 08:47:42 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [GIT PULL] xfs: new code for 5.15 To: "Darrick J. Wong" , Thomas Gleixner , Dennis Zhou , Tejun Heo Cc: linux-fsdevel , linux-xfs , Dave Chinner , Linux Kernel Mailing List , Eric Sandeen , Christoph Hellwig Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 31, 2021 at 2:18 PM Darrick J. Wong wrote: > > As for new features: we now batch inode inactivations in percpu > background threads, which sharply decreases frontend thread wait time > when performing file deletions and should improve overall directory tree > deletion times. So no complaints on this one, but I do have a reaction: we have a lot of these random CPU hotplug events, and XFS now added another one. I don't see that as a problem, but just the _randomness_ of these callbacks makes me go "hmm". And that "enum cpuhp_state" thing isn't exactly a thing of beauty, and just makes me think there's something nasty going on. For the new xfs usage, I really get the feeling that it's not that XFS actually cares about the CPU states, but that this is literally tied to just having percpu state allocated and active, and that maybe it would be sensible to have something more specific to that kind of use. We have other things that are very similar in nature - like the page allocator percpu caches etc, which for very similar reasons want cpu dead/online notification. I'm only throwing this out as a reaction to this - I'm not sure another interface would be good or worthwhile, but that "enum cpuhp_state" is ugly enough that I thought I'd rope in Thomas for CPU hotplug, and the percpu memory allocation people for comments. IOW, just _maybe_ we would want to have some kind of callback model for "percpu_alloc()" and it being explicitly about allocations becoming available or going away, rather than about CPU state. Comments? > Lastly, with this release, two new features have graduated to supported > status: inode btree counters (for faster mounts), and support for dates > beyond Y2038. Oh, I had thought Y2038 was already a non-issue for xfs. Silly me. Linus