Received: by 2002:a05:7412:b995:b0:f9:9502:5bb8 with SMTP id it21csp3035299rdb; Tue, 26 Dec 2023 13:36:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IHjbyLcD1tVpuBOXfYd5trcQVhugPNxb7zJpyHy4VamhvyBYh7T0YChkpzQ7IN1vvtEXavU X-Received: by 2002:a05:6214:c64:b0:67f:6b04:425e with SMTP id t4-20020a0562140c6400b0067f6b04425emr12829050qvj.77.1703626571530; Tue, 26 Dec 2023 13:36:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1703626571; cv=none; d=google.com; s=arc-20160816; b=Nqk1v+s1smnHZyh9dW+n63uuoVciH5FtQmOLTt1We2DE1ZP9sGuPIMw5h/iwHqp9Q6 AWlLcCWRhypz/aWIxnNNkdPQFdhClQjz9tZ0UEbTeu0HCFStriBnT19RN69Ku1RpTJsd QLOTM9uSdJy/e1HLTZU9TDVXFK9Ty9bLzsgMwO142Up2qIFjf7FQlUyj0gWHCuPHoVbp z9NnxYcOYnnPalUS68uQN37g27ddNTvDzvkLg4l4tiPq63DPRMV4NFKGCezbMduhvgOr att29JlpgVDnP4z7SoBXpFWmi1OSAl6kPU1M8mW42bAF3+Yng7gJqKWD+GyK8TfNbBDR XJ6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:sender:dkim-signature; bh=ECOmvaeUorv1py7vq0hkE8T1yjRXAE2xTX+cDTjGIXg=; fh=TXYzuIld3ZUQeXPpec9E/mX9DSWP5fA80EZAZ3xe2Wo=; b=cs1cqNhwXVGzDoTjUMzvo/yCP8knANXrJoTkVAvl8lud7OPt4kNL7hPAgMlPhO4Dmu NhKtFZAQ69UnH26NzGxKks5jGxX6aH27Y4SrXcZHKP1eu4vaxWz/4BsX1CSn+3RPvtRh TgEWgev0Z45cQGG3VBTd/ApIwf7zMhOyDbE9gCLfSZY6qyqgucAE2uvFA64GHQpTJggf Dpyugf9mEU+2UV1zuuVY5KlCp/VnTtbZ3cwYJzYPoOOFqIzZOnKruzFuj2KO/hsNn16P S5DwuJ4EdsgQvdXZfJWxIPympud9DRqKJrdyzmrmnwry91xCUR2KUshJYVBLcIHSl6DD dECg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CGbWAaOX; spf=pass (google.com: domain of linux-kernel+bounces-11698-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11698-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id bp40-20020a05620a45a800b00781009933c3si13821835qkb.363.2023.12.26.13.36.11 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 13:36:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-11698-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=CGbWAaOX; spf=pass (google.com: domain of linux-kernel+bounces-11698-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-11698-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 432571C22073 for ; Tue, 26 Dec 2023 21:36:11 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 536295226; Tue, 26 Dec 2023 21:36:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="CGbWAaOX" X-Original-To: linux-kernel@vger.kernel.org Received: from mail-il1-f177.google.com (mail-il1-f177.google.com [209.85.166.177]) (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 3E3255224 for ; Tue, 26 Dec 2023 21:36:05 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-il1-f177.google.com with SMTP id e9e14a558f8ab-35d82fb7e86so15299625ab.2 for ; Tue, 26 Dec 2023 13:36:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1703626564; x=1704231364; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=ECOmvaeUorv1py7vq0hkE8T1yjRXAE2xTX+cDTjGIXg=; b=CGbWAaOX/LZOryc9Lt8CFhTIxtf03S+ahotOSPucTcj3lDpc7UGr7IJBGXTcCl+uiC P2Go+IY3Qb6YoCSalgk3aLj7aHCZOBU/wN7pdk8HNrmu2O2LZQvfhYpHGl3uHL0w/1NH StaRxmTh3890FSReqixOpzV/NQ86V+fEVIBRcPan4y1GmbOfj9pG2sWtiZZIhmOX1KG2 +SENnwgjUuvx+V23i62ovZz0TNNF1xZR7fwQbUAFNmftHKlA/ZvRr9oOQnfvKxlctPju jvhcejw7Mp/1R2QIhuMyrf/1fZOzjJCvXqMQL3DbDNpYM2ZHBQYBwHoIitqvZ4N5rL5a uBzQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1703626564; x=1704231364; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ECOmvaeUorv1py7vq0hkE8T1yjRXAE2xTX+cDTjGIXg=; b=mU5G1OVA2SEiJ+f0JUPmR7uqxxWW+9NKW7EZviMiAAN4f58/7a7CYC5WX7AftanJ93 gXkTZyMTybByQ1eNT3aHk4jUjj/kahTMY/qtIUfTPCqM1kbHxQjiQCkps6NMKgdDMIAS ggCVkLuKvRXwzV8oZqrrCmdG4XGg04TP8iMywAW6ieP14b0eqjIOQmR8LNZ980re+BLZ a7fNdRN42XY/zkI8YUaUXOl/JjB9rMQhjpSrcFnmOiXKRsv4RYhn17KrVtgglmFjZOY5 ZVrQ4eqFWrJ9bxwJAQlLfxZ2OOSj1vHhHYDKh5Bi/oOzUq5GYH7QnRvXYNssc3+Vn3nO n94w== X-Gm-Message-State: AOJu0YwsHSluvCuLACQL8kmbJzj7o5/9EkmKGMfDoIgaosa5v/Ir6gp5 iHlE8TAEoh9ET88BcWgsh6w= X-Received: by 2002:a05:6e02:2490:b0:35f:e8c5:2d0b with SMTP id bt16-20020a056e02249000b0035fe8c52d0bmr8342978ilb.40.1703626564252; Tue, 26 Dec 2023 13:36:04 -0800 (PST) Received: from localhost ([121.174.67.130]) by smtp.gmail.com with ESMTPSA id jv11-20020a170903058b00b001d08bbcf78bsm10563474plb.74.2023.12.26.13.36.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Dec 2023 13:36:03 -0800 (PST) Sender: Tejun Heo Date: Wed, 27 Dec 2023 06:36:01 +0900 From: Tejun Heo To: Lai Jiangshan Cc: linux-kernel@vger.kernel.org, Naohiro.Aota@wdc.com, kernel-team@meta.com Subject: Re: [PATCH 01/10] workqueue: Move pwq->max_active to wq->max_active Message-ID: References: <20231220072529.1036099-1-tj@kernel.org> <20231220072529.1036099-2-tj@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: On Wed, Dec 27, 2023 at 05:05:49AM +0900, Tejun Heo wrote: > Is that a problem tho? There's no execution order guarantee except for > ordered workqueues which is not affected by this. In a later change, we > switch to list of pending pwqs instead of work items and the issue ordering > is lost anyway. This isn't a significant departure from previous behaviors > either given that there has never been ordering across pwq boundaries. Thought more about it and I was wrong. This introduces reordering within pwq which is new and can break ordered workqueues. Will fix. Thanks. -- tejun