From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-10.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 359F1C0650F for ; Thu, 8 Aug 2019 19:54:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id F249321874 for ; Thu, 8 Aug 2019 19:54:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565294077; bh=8F6M1GP9no83fV+Wdt/H+/TIMF2roLW3ZPntbR/Okzs=; h=From:To:Subject:Date:In-Reply-To:References:In-Reply-To: References:List-ID:From; b=WF0X3tVpFscB/iInYNn94/TM93GxwWUZleaAs+i9pAUNWKdp4fcluCxxsCOtbNik8 09eWpiZzHpkK7hlhmBvCaU91+9fjsz5chZ/DIlbQQJZ1qn1PYWOOHlOy6ifgzAfon5 qsOdGD/Vbjq+dei5FMRLTwxh1Z69yZM3CQDv5nqA= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404368AbfHHTxN (ORCPT ); Thu, 8 Aug 2019 15:53:13 -0400 Received: from mail.kernel.org ([198.145.29.99]:57826 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2404163AbfHHTxL (ORCPT ); Thu, 8 Aug 2019 15:53:11 -0400 Received: from localhost.localdomain (c-98-220-238-81.hsd1.il.comcast.net [98.220.238.81]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 87DC721882; Thu, 8 Aug 2019 19:53:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1565293990; bh=8F6M1GP9no83fV+Wdt/H+/TIMF2roLW3ZPntbR/Okzs=; h=From:To:Subject:Date:In-Reply-To:References:In-Reply-To: References:From; b=tH4hfQcYzB9kQS5zgwnMvoZ+IlaRrDxtDbJciH1UIyh2gr/+O9c6qRzYXQZCOFuuI oK8ZPh4mVO6Qh9NC6WE1ue/shZSxbe3wwmz3Fq7yK8u2oShzzSGXliE+FQCswN+NRy cKqeHBYFDQ652d+3ex13oKSTXhYpAj0NcEffyFy8= From: zanussi@kernel.org To: LKML , linux-rt-users , Steven Rostedt , Thomas Gleixner , Carsten Emde , John Kacur , Sebastian Andrzej Siewior , Daniel Wagner , Tom Zanussi , Julia Cartwright Subject: [PATCH RT 01/19] kthread: Use __RAW_SPIN_LOCK_UNLOCK to initialize kthread_worker lock Date: Thu, 8 Aug 2019 14:52:29 -0500 Message-Id: X-Mailer: git-send-email 2.14.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tom Zanussi v4.14.137-rt65-rc1 stable review patch. If anyone has any objections, please let me know. ----------- commit 2a9060beefcf (kthread: convert worker lock to raw spinlock) forgot to update KTHREAD_WORKER_INIT() to use __RAW_SPIN_LOCK_UNLOCKED() instead of just __SPIN_LOCK_UNLOCKED() when it converted the lock to raw. Change it so that e.g. DEFINE_KTHREAD_WORKER() users don't error out. Signed-off-by: Tom Zanussi --- include/linux/kthread.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/kthread.h b/include/linux/kthread.h index 4e0449df82c3..4e663f407bd7 100644 --- a/include/linux/kthread.h +++ b/include/linux/kthread.h @@ -105,7 +105,7 @@ struct kthread_delayed_work { }; #define KTHREAD_WORKER_INIT(worker) { \ - .lock = __SPIN_LOCK_UNLOCKED((worker).lock), \ + .lock = __RAW_SPIN_LOCK_UNLOCKED((worker).lock), \ .work_list = LIST_HEAD_INIT((worker).work_list), \ .delayed_work_list = LIST_HEAD_INIT((worker).delayed_work_list),\ } -- 2.14.1