Received: by 2002:a05:6a10:1d13:0:0:0:0 with SMTP id pp19csp1747159pxb; Fri, 27 Aug 2021 16:56:04 -0700 (PDT) X-Google-Smtp-Source: ABdhPJycPnTdMMv4KyRHt4z7gDJ7O/zfE4rtqN4r3aywF+PL+5pIY0qZKug8zd8CZR7pdcWyk50v X-Received: by 2002:a17:906:585a:: with SMTP id h26mr12815499ejs.31.1630108564555; Fri, 27 Aug 2021 16:56:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1630108564; cv=none; d=google.com; s=arc-20160816; b=ABhFAl59fBNPf0syuh/2lpD0/BkosVOctfsbDUEWqZGKKZUM9t8SlI8Sq7TNB38dKP SF8kB7xpS8HaBxpptzMw/mUAD99Snge/xKhUFwyfFrjYH67UfM7QQozvB2rjYwr5SEqL skisCtl+osVDaxh7fm+yYaagqn3Q+3JDITKk1ghQYzDgOtgyIbUbwYeBGKUn7RWdDQbd qmh1o6CM+GxA3HxWYLj7J8NOIFNcmUrQijHzRk5OcbrTDJN9aTHM/QEyW6pModhFI9Ks IJr2rhWE2NH1RRXfkVrERVy9j1gn41Zix1uIdWfWdXB99wvH07O7x0T9VaFmDaY5LQaE 4reQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=eRhNbnt3DAm6tPBt6h9ZXvnjc2L9dbwx7zWa+qhmDW4=; b=h5aJQBuFOStGhK7gj5gbs81loflw5EVsctB4ZqFwAOHyQJUTmop2JOdPQngvC3o7B7 u/TOSmrPjLASaB7Gm+v9i1+CIG4rkaN+PmlYrdQsQ00q9T6a7M54ogil/27/nwmr3iBA 3Toi0k+I3sGdoBYxGDGJC/gYTR4hoC0UF1zkhv8oNwgpoRJPi9aYM1E8ZsZNjI43peXX aoOtz0e81rokS0+/7nMfPdxUZU/rWxhfbOuXJyOtH8gc+oIl6nDToytwxPocO4O4/tiz bYIwfJRVFNHR9VpuellCA3YEXS8hJOOpQI2TYg3IhhWBGNY3ePx0pw+NnLic0a6OsEaH zp/Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=h5gOUbJc; dkim=neutral (no key) header.i=@linutronix.de; 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 hs5si3582675ejc.359.2021.08.27.16.55.41; Fri, 27 Aug 2021 16:56:04 -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=h5gOUbJc; dkim=neutral (no key) header.i=@linutronix.de; 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 S232693AbhH0Xyi (ORCPT + 99 others); Fri, 27 Aug 2021 19:54:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36750 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232547AbhH0Xyc (ORCPT ); Fri, 27 Aug 2021 19:54:32 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B01FDC0613D9; Fri, 27 Aug 2021 16:53:42 -0700 (PDT) Date: Fri, 27 Aug 2021 23:53:39 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1630108420; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eRhNbnt3DAm6tPBt6h9ZXvnjc2L9dbwx7zWa+qhmDW4=; b=h5gOUbJcreKy+lAcS+ZLFzs2jN8hiBVzZiiQ2eIFqk/thsglLDxcaOY2Pntx/xWYp2brLn 3OxQbQtwdBcOn1cb5ZzQClrQG6RWzBCNHtz3te43p0JtWwhDU7XosqWHrQJAMndxbbPH6t FJ98K0SWAboSRxfuz6nhcR/xjk1BmGnN7crRxpHWSMQ6g7dqUHzsE87/a/pIz8eqaKERew n9mn3FbyEHLVuXkYh/B8aowNZng1DvVtzHhWGrdGfq/a42ZBflD7Dx5sj9KfIbk+c7vgi2 MNZrUfu4tFhAHlz4mVaV1B5KAH/ZBVgGq5lJfHIWbDHOWGFeHR+kucA6aFIPLQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1630108420; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=eRhNbnt3DAm6tPBt6h9ZXvnjc2L9dbwx7zWa+qhmDW4=; b=bgEOw7i6iHg+83OOQJzznZ7qCkfAfh2J9qIREiOgMekXgiVQyC6zVIS50kZasQGxAlu4VP FhMxsic/z4ZG6ODw== From: "tip-bot2 for Sebastian Andrzej Siewior" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: smp/core] md/raid5: Replace deprecated CPU-hotplug functions. Cc: Sebastian Andrzej Siewior , Thomas Gleixner , Song Liu , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20210803141621.780504-16-bigeasy@linutronix.de> References: <20210803141621.780504-16-bigeasy@linutronix.de> MIME-Version: 1.0 Message-ID: <163010841968.25758.13055777938918716276.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the smp/core branch of tip: Commit-ID: 252034e03f04e54acfb5f5924dd26ae638e3215e Gitweb: https://git.kernel.org/tip/252034e03f04e54acfb5f5924dd26ae638e3215e Author: Sebastian Andrzej Siewior AuthorDate: Tue, 03 Aug 2021 16:15:58 +02:00 Committer: Thomas Gleixner CommitterDate: Sat, 28 Aug 2021 01:46:17 +02:00 md/raid5: Replace deprecated CPU-hotplug functions. 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. Signed-off-by: Sebastian Andrzej Siewior Signed-off-by: Thomas Gleixner Acked-by: Song Liu Link: https://lore.kernel.org/r/20210803141621.780504-16-bigeasy@linutronix.de --- 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 b8436e4..02ed53b 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 >= new_sectors) return 0; mddev_suspend(conf->mddev); - get_online_cpus(); + cpus_read_lock(); 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; } - put_online_cpus(); + cpus_read_unlock(); mddev_resume(conf->mddev); if (!err) { conf->scribble_disks = new_disks;