Received: by 2002:a05:7412:8d1c:b0:fa:4c10:6cad with SMTP id bj28csp164325rdb; Tue, 16 Jan 2024 19:57:36 -0800 (PST) X-Google-Smtp-Source: AGHT+IEVk6k0x3++vLxfXG7kaw+cAcGrp7zEga2S3wQpEax2YDwbsC7g07gt8PGxKT+5pMTgno39 X-Received: by 2002:a05:6808:23cd:b0:3bd:91f6:4588 with SMTP id bq13-20020a05680823cd00b003bd91f64588mr1057678oib.58.1705463855969; Tue, 16 Jan 2024 19:57:35 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705463855; cv=pass; d=google.com; s=arc-20160816; b=xECDVLVYHlGbsfZvtViHfxwt4Kd5zYYSj85vtI35dxvPV3+jgRcfPjyw4C9ClM+Qvg G+4V4i3rAxL6CHi7W222NnC8elYXt7htB23cNayYnd7bEchcMcP6RZoH0X4GU+Rk7PRi FuTuenI1ep1PGBqPLkhIfFtaGnCklFI29amoOh/ef0o2LcHc1sI2LZR8Ze2xt1SU9djU OG+s2sK8OsBmXi+IoqTARN27YohpmI12vN72CpWxvVG0wz/tNvTR7ihWdok3rT+T1yYB HpmmASDnSrGfpB3bsJCgN9+VNR0Yrk1iCbvG4HYjV0oxf/cgFNSrFAdwR57BC5I//0HJ NecQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:dkim-signature; bh=EBkgC3Na2JY82eSWGD2Dsn8JMBtSuCOs/lSiN46PYx4=; fh=6sz2fN9Uw0h4jD5aS+w4/tl5QJVJPw4tfxHCAXBhs6Y=; b=kdx6ri47EO0VKEDana6/3MTMs1TcThcWCdVVv0l57pBr+hrKdVRcvpbHAUGDCpJ86k +XmfAfwxhYrsmqP+vZwYCPwKkyX3RGbHBub1LXoU5nKUfg1OsPxAGDu/YqMloeE6m4eY L0I2MQjzJZjPeqxCb8vPl3lNmMnCmm0BMZk+TsA+9LDm3vQyA6hqETIQpSxHnj5MEEJt gQESqCF4yPoGKFl/Fsv5l919kO9K41u08pStSOdlLLQAwGY++xYBdFuCvDEHPU2cFj9Q ZG+S2kdPEhveU0N0xwmRsUSaid6fm6+owvmGGWqggS8J6LudACx/TD3HgfMft2r0MPze dfyw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="EcB/351I"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-28509-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28509-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id i16-20020aa78d90000000b006d9a617d2ecsi710651pfr.80.2024.01.16.19.57.35 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Jan 2024 19:57:35 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-28509-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b="EcB/351I"; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-28509-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-28509-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id CB2EEB24EB7 for ; Wed, 17 Jan 2024 03:57:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 906F6524F; Wed, 17 Jan 2024 03:56:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="EcB/351I" Received: from mail-qk1-f178.google.com (mail-qk1-f178.google.com [209.85.222.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7AB254439 for ; Wed, 17 Jan 2024 03:56:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.222.178 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705463818; cv=none; b=KFu1mZzfZW6rO2vR5x/Dq/Ru+DK3m3F1UYygwl03XO+0Lz8Zs8EfX2qv3Kue7q0iMr3bIhQVZ4XbVipVP0EK100oUAUhVNdHpIgyILad07tq6C9nCXuNGjANWdgLUQdc9djh0GZmbE4WagKbEPPLVh7tvSRLWqvabpFliyjzTu4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705463818; c=relaxed/simple; bh=oXegu66AdRVLgWJHkNyNpZ1OF5DX13G4QVPtI4stWg4=; h=Received:DKIM-Signature:X-Google-DKIM-Signature: X-Gm-Message-State:X-Google-Smtp-Source:X-Received:MIME-Version: References:In-Reply-To:From:Date:Message-ID:Subject:To:Cc: Content-Type:Content-Transfer-Encoding; b=bqz3AaSTfgmmE5IznlP5LJTpR1p4dZTCBjNj5ZMKgm322+xdn1SjV7+MU7IqCgOckv8P1g8yGs+aR1VeP3FM2hEmpMKFevaNcvH3khIci/p51NJBJdAq4vMTzCNmXwwv0/oyDO9ora4UZhLYAGtQLPTpXJTaXvxI9YKgGhAABI8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=EcB/351I; arc=none smtp.client-ip=209.85.222.178 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-qk1-f178.google.com with SMTP id af79cd13be357-7831aacdaffso1025711885a.3 for ; Tue, 16 Jan 2024 19:56:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1705463816; x=1706068616; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=EBkgC3Na2JY82eSWGD2Dsn8JMBtSuCOs/lSiN46PYx4=; b=EcB/351IFpZt4aO/6c+AC6EeMoCO+jd21RvBSLLM9eD/oqR9MwUk722XBD+w6NdmlU /7++ymEBKZynMJH8OyldNvRSbwf7/vG5+Rmp6YRS/VUfGmIZd8gGuhLzTuOYwnaNSsjo oDHUe5xSIwWiw/jr9ibFu8mXucpnQra7cgsVqwHbt/CDVvr3C3B84qWrDfz1jTEwVE7Y I2wwLuTUP/RgoTQhwDzfTO6Qt9Y0GC9uV8iNjgjUK01qnA/67gu8L2EN4W7Y3KQ0i8UY bA+1FeN+jvdKmt1oAYS9nrqMxMomu22sGYu+qJZ1JxS7XcPJMLN7WreL7eumb6009W5Y acpg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705463816; x=1706068616; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=EBkgC3Na2JY82eSWGD2Dsn8JMBtSuCOs/lSiN46PYx4=; b=NWWJ9zlTuN3WW2QudM8BMAZUmaRPJqz3ooweO8Ei7GQfnSIAFohCzutfIiWKiI+9RJ 1kcPJSr+NdLWz1v4spUwRcKcCqybY/xO/pEFo8YmzeJDB1vxe1d72BZjtwGYQq6zslqx QQqTV/MfID7yJd94nXlkcPWsvAeaoIZLW6UL1dJyt1rPUtNjxOVpPM5JNxeP8XW8siBz 1vbjqtuGeOsZL5qvcwGZuUjQT1wgZ1dVGC0ZsYbCgiFEEtek9TDNRpAU3O4qWt5HWtkY ypPNGJogDoPu34aLbhALN2DxcM4fpRZUZgQDE/8/1fkP95+o0l95P64FgWObVFBA2YdN P6EA== X-Gm-Message-State: AOJu0Yy4QiGiuPs2Nhtlq+Fs/SkQQAudnt/IEDVi1a09nU30OGwoD+Db fVr8X9o+2h1egzzfAbPiSFrQ5Ipt6SKaadJ0EwM= X-Received: by 2002:a05:620a:a41:b0:783:63be:684f with SMTP id j1-20020a05620a0a4100b0078363be684fmr3493651qka.0.1705463816332; Tue, 16 Jan 2024 19:56:56 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240116161929.232885-1-juri.lelli@redhat.com> <20240116161929.232885-5-juri.lelli@redhat.com> In-Reply-To: <20240116161929.232885-5-juri.lelli@redhat.com> From: Lai Jiangshan Date: Wed, 17 Jan 2024 11:56:44 +0800 Message-ID: Subject: Re: [RFC PATCH 4/4] kernel/workqueue: Let rescuers follow unbound wq cpumask changes To: Juri Lelli Cc: Tejun Heo , Aaron Tomlin , Valentin Schneider , Waiman Long , linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, Juri On Wed, Jan 17, 2024 at 12:20=E2=80=AFAM Juri Lelli = wrote: > + /* rescuer needs to respect wq cpumask changes */ > + if (ctx->wq->rescuer) { > + set_cpus_allowed_ptr(ctx->wq->rescuer->task, ctx->attrs->= cpumask); > + wake_up_process(ctx->wq->rescuer->task); > + } > + What's the reason to wake up the rescuer? I support this patch except for the wakeup: Reviewed-by: Lai Jiangshan Thanks Lai