From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f73.google.com (mail-wm1-f73.google.com [209.85.128.73]) (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 B92D52D7DCE for ; Mon, 4 May 2026 07:55:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777881340; cv=none; b=i4LoUNpgXUXdR/XZKdKPm67w/9R/Czo08rD2x2lUuN0WcJ6F0ttf1NGyq65Dvqaif8dTF0R4cQPFkOYOLm8+6IBvryYaq+mZd3iQdDsQmrc/rxoi21cR5P1mbDeRaKCImRfUPUlLAGx6fErkPRKu8uQnVUfxeGG4DfUur0AbME0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777881340; c=relaxed/simple; bh=Wep1OzvReUoUQ307b1u6MusJZcNT1R35+FVLjoVWzJo=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=lY9n/dS6kdlQEmciaRxlDPFQzqQisM0YC8tuWoz0kRIpzUKvwFbD3gJ61/a2Gzmet9XKEAuGeVrPx43JZt56MbuMyBabdm+xz8tNc/J+CuSjOYIzKBSqkIVfpzzQH1mIYPrnD79UxuZDn+Ne1jFAoyWS6o66GFDNbnKncfSZMl4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=wL+dpY0A; arc=none smtp.client-ip=209.85.128.73 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--aliceryhl.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="wL+dpY0A" Received: by mail-wm1-f73.google.com with SMTP id 5b1f17b1804b1-48d104d1d8aso2176575e9.3 for ; Mon, 04 May 2026 00:55:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1777881337; x=1778486137; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=ArN6QoJPrmHm7+I3EYun6DdyhIE0DYL9ZpeoZAysRcY=; b=wL+dpY0Ab9RIlU+H4qWxr82hThaI2H6xYMu9tuSQd0s/t+ODv9C7xxeOWNhxVNIM/A epqZIDH4r7ZFvbawn/aeavXWGcdfnpGo1HCrkYD4TcJ/XANe58Ylopdxxt5IQzQDsqrS y30+5K4Sa6VGKSvh5Lza+B96nOHjnNj4XB8tF/HtTobkBhHswJNQX7RSOAA9nP5ZWa7r fs3zZV2G5289tgxhDeTXeWBWf1gO0w1Cxa29e7+/6X3SAZUc2oB5zWazAz2aw6zeFMjy 71bjeD7UZ0STjBrZp5Y/iR0gXbPr4xerrsI1w5bBfuiPNoCDXEE9kR6iiYiy6U4y13pQ udsQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1777881337; x=1778486137; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:x-gm-message-state:from:to:cc:subject :date:message-id:reply-to; bh=ArN6QoJPrmHm7+I3EYun6DdyhIE0DYL9ZpeoZAysRcY=; b=JvfpMZctu2WyKQE5PF2ZBIhyjvXgEtTt3s9DCbKzBCgmQ8UYrhs0yA4f4yZYHnipgJ t9HKQPfCw9rG5sEjinT9QeoumMryEgn4SwUXW7NDUgVWvY91ZQDFnLbB59VuEPpZ9CEL AhhRma98QCR0ETYyqvCe2S0OOChZvsRjt2aYktLLUGbd87Hs3MThgEaSYG8P0Iy90baP Q1NYclKG9DmHSuEbkmyCbO6sbiR3TtZuudmJEG2IsBP+I7GvrpripopWW7+Uiw3T9DvV rtc90JW2LW1ZFp6Yyy1hl1F587ZraMPBZ9CwbEQnyDv8wUzqkZV722pcR/xN3lRlwvDN Wxmg== X-Forwarded-Encrypted: i=1; AFNElJ8iucSWebYB/ADfU8dqX7wLzkG/1jcuHmIvDem14kI8U6eGVQpchGmHijpVtgI3vz2YVktuJp65IFmPMb4=@vger.kernel.org X-Gm-Message-State: AOJu0YwyhOkz6CJOjyxIe9oTz1SHVj0H8/G4B4KIjXuA0zmyUCabXm2F WjLxIvN7GLZe6jcDVDhI7ZkEAAny++jjyslsLt8HglEzzB+2sxoLe8fgUI8+4n5XERK7zAyBTOO HwpLFOsv09hNiN1OVuA== X-Received: from wmsk9-n2.prod.google.com ([2002:a05:600d:8489:20b0:48a:93d2:60ec]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:a316:b0:48a:53ea:13e6 with SMTP id 5b1f17b1804b1-48a986711d3mr100737155e9.25.1777881336746; Mon, 04 May 2026 00:55:36 -0700 (PDT) Date: Mon, 4 May 2026 07:55:35 +0000 In-Reply-To: <20260501191122.64311-1-work@onurozkan.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260501191122.64311-1-work@onurozkan.dev> Message-ID: Subject: Re: [PATCH v2 0/1] rust: add Work::disable_sync From: Alice Ryhl To: "Onur =?utf-8?B?w5Z6a2Fu?=" Cc: rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, ojeda@kernel.org, boqun@kernel.org, gary@garyguo.net, bjorn3_gh@protonmail.com, lossin@kernel.org, a.hindborg@kernel.org, tmgross@umich.edu, dakr@kernel.org, tamird@kernel.org, daniel.almeida@collabora.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Fri, May 01, 2026 at 10:11:21PM +0300, Onur =C3=96zkan wrote: > The immediate motivation is the Tyr reset infrastructure [1] which needs > to stop queued or running reset work during teardown before dropping the > resources used by that work. The reset series started to require too many > independent dependencies, so this is split out as a standalone change to > keep the reset series focused on the reset logic and easier to review, > rebase and land. >=20 > [1]: https://lore.kernel.org/all/20260416171728.205141-1-work@onurozkan.d= ev The fact that it's motivated by Tyr could be in the commit message itself. > Changes since v1: > - Fixed a soundness issue where Work::disable_sync() could make a later > Pin> enqueue fail and hit unreachable_unchecked(). > - Removed the WorkItemPointer::cancel() helper and explicitly call drop() > in disable_sync() after C has already canceled the work. >=20 > v1: https://lore.kernel.org/all/20260428104459.174602-1-work@onurozkan.de= v >=20 > Onur =C3=96zkan (1): > rust: add Work::disable_sync >=20 > rust/kernel/workqueue.rs | 121 ++++++++++++++++++++++++++------------- > 1 file changed, 81 insertions(+), 40 deletions(-) >=20 > --=20 > 2.51.2 >=20