Received: by 2002:a05:6a10:c7c6:0:0:0:0 with SMTP id h6csp2471519pxy; Tue, 3 Aug 2021 07:19:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEFkxjbyrNgvAz3YAgpVYbPzJtuJ7kH9TMUSYVix99OT+LjNoIkzCfbxe/pcu65HDCTmYh X-Received: by 2002:a02:394c:: with SMTP id w12mr15734561jae.125.1628000377227; Tue, 03 Aug 2021 07:19:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1628000377; cv=none; d=google.com; s=arc-20160816; b=LIGMJGyP4BpuVIWxWG4KqIsPMCjSD0BdXP/FY8rlMioZr1ux/d1aFSB+cMfek/x7Uo CWaWg3DhL2ILrlTlc7Cdk8b9RQZSZLAXvtYhY3/J/40C6xx+2ZFPgYi096S8oqgAgK4k MIm4Llxbhr9STV69vHH/pcx085B+1p6eB7aEeSrrLRdX1YoYLgWktT1lwLGCujubT3hO 4o8e6QhPj0DB92MwV9OL2s1Zbfp67EsYO9rT7kGAjYHDRgThHtEiBN9ro2QFdRdLk64r kjvrdgx55K6z2Ob8V1jGEhi+BuN3aweE6wgUfVsEEoN5oCVVuHgEs7ckvB1eQr+Pu5tH AApA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:dkim-signature :dkim-signature:from; bh=clbqKT1fPD2WJMpM6uc7v0qE6R46vwL2Klxs/fx6jpw=; b=JkqH5d6t8Xgw8fX2dCvMv80ifV14c2no3GjIfYWx8WIK/A/V2RPvNf7+xQ9SHOEYL3 vXY8zGpOyNKMOf0dcuWt+ElWoResES406mM/lavzZxLaQgmVJ9//6Ou3g6wCNvnApLyo eRzAJMoQyDW3uljDXc7NUhyLYzqOWJl/oYMKk02c7RcOQ2J1xXyGUtzJ7vzrPXu2kdOs RUhNHIzomXJYNlx7hZgc6MAjSX5m6mqJgPwvai8++3GNLKmeJ2dCxq9PVfFOZrDk0KbW 9HHbUt1gUGlrOvV4TfNR25h+fiUZDQTeegCtFvoc0stXJ+Lf1DkMMeTS44XOH0xWqXUz 7WSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=SHp+acff; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w3si9453002ilg.140.2021.08.03.07.19.22; Tue, 03 Aug 2021 07:19:37 -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=@linutronix.de header.s=2020 header.b=SHp+acff; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236716AbhHCOR6 (ORCPT + 99 others); Tue, 3 Aug 2021 10:17:58 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:57036 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236549AbhHCORV (ORCPT ); Tue, 3 Aug 2021 10:17:21 -0400 From: Sebastian Andrzej Siewior DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1628000229; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=clbqKT1fPD2WJMpM6uc7v0qE6R46vwL2Klxs/fx6jpw=; b=SHp+acffAFQJTevPnSm+5yKV+s+2pXMIke8PmGtImP6eDVosdG/thA5sw1SpFHZ5WV0RrG uiLcFbBCc06KBblqI8fxVcN7DFDmdAT5ARYm6ACu7urd3hYGeWVHibV4ZobqcaBOYrkZa8 9vFWJh/IxFgYhcsfrWgrrogb79VpctI/nQIeUjDn4xCxE5gnA5+t4cCLrZ7wBQBCVYZYqY E3mobc+LOJ1SgCVRq5I6K+4VxrUKTW0sKL0DkO6MX6jy9KOsfWihXj4MFd8Yjzht37fzS+ AT0yqPqeB7FLChIR4nwV5CKbAA5WsmdF+/qcm+R3KkH1rx+BcsJDJjVQljjgwA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1628000229; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=clbqKT1fPD2WJMpM6uc7v0qE6R46vwL2Klxs/fx6jpw=; b=KasqPCA2Yv2pD4a/l519/xfeCJKQq/BCmwrsxivp1w2ab5SofeYkr2EkFl5wuJbdv6exjq lxEBXSmWJNXBssAg== To: linux-kernel@vger.kernel.org Cc: tglx@linutronix.de, Peter Zijlstra , Sebastian Andrzej Siewior , Song Liu , linux-raid@vger.kernel.org Subject: [PATCH 15/38] md/raid5: Replace deprecated CPU-hotplug functions. Date: Tue, 3 Aug 2021 16:15:58 +0200 Message-Id: <20210803141621.780504-16-bigeasy@linutronix.de> In-Reply-To: <20210803141621.780504-1-bigeasy@linutronix.de> References: <20210803141621.780504-1-bigeasy@linutronix.de> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The functions get_online_cpus() and put_online_cpus() have been deprecated during the CPU hotplug rework. They map directly to cpus_read_lock() and cpus_read_unlock(). Replace deprecated CPU-hotplug functions with the official version. The behavior remains unchanged. Cc: Song Liu Cc: linux-raid@vger.kernel.org Signed-off-by: Sebastian Andrzej Siewior --- drivers/md/raid5.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/md/raid5.c b/drivers/md/raid5.c index b8436e4930ed8..02ed53b20654c 100644 --- a/drivers/md/raid5.c +++ b/drivers/md/raid5.c @@ -2437,7 +2437,7 @@ static int resize_chunks(struct r5conf *conf, int new= _disks, int new_sectors) conf->scribble_sectors >=3D new_sectors) return 0; mddev_suspend(conf->mddev); - get_online_cpus(); + cpus_read_lock(); =20 for_each_present_cpu(cpu) { struct raid5_percpu *percpu; @@ -2449,7 +2449,7 @@ static int resize_chunks(struct r5conf *conf, int new= _disks, int new_sectors) break; } =20 - put_online_cpus(); + cpus_read_unlock(); mddev_resume(conf->mddev); if (!err) { conf->scribble_disks =3D new_disks; --=20 2.32.0