From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) (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 E6ECD421235 for ; Thu, 23 Jul 2026 11:58:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.69 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784807921; cv=none; b=QcKqYBRgY9shCP6Qr18VHN5njdWFdaSXROd7g4+J8VkqeEZxS8KeweWxc/sLXG0MGljCdT3Su8hErk+guM1YDqDSbGWWSvdI5NK1zJ9p0JelOy4fv3GDcdM6jVRzvN/4tFUQG3oflRufTBJwV7jO5epr+ZZEC/OrCjwexbjJ+Io= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784807921; c=relaxed/simple; bh=rvSLWv1lyggDeshfu8c0P3+zybcNtNai3hRLKesivpQ=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=aWFck8Jp32MUJuA4BzqiwilKRzKa77g/Cy/MqMxIVPKTdKQTZLJ1xUifyy/SwbIDKP3oTiExxs9ZxbO7fx419NF6fbzY43FZSybSl6PBSlPtpgsitN09VbCQJHo5A9P8QTL8Kzrmy6P4smFqCd7weAPWjgbQv6SDLhVnOyE043s= 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=Tl6sCs/A; arc=none smtp.client-ip=209.85.128.69 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="Tl6sCs/A" Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-49559af7b97so4151625e9.2 for ; Thu, 23 Jul 2026 04:58:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1784807918; x=1785412718; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=NC7EUuaERmwRUjpxFJ+SlZvPScb3xGh6wRASl7q1iCc=; b=Tl6sCs/AMBcnKJ7FTWFYYzQH/nI/dYTS8a2DzYZlaWcVemk1iVJmmZrQ+3jPnGDU7O av8oLX/Imcy9EiC4Ox8PqveHfia2Ffd20MPTr59nkxAnJ0RqmfFYTAbwgsyhV9125fOO PWW9X0ytWzXm4raCiB5pThrpfvohyYewu+iMXqDi5INoiLhiCVZKL8eETcYJUttTM0oa 7oQWoKXWRzlAji1m3CqNUI4h+i6mtd4UWEbQ1KxHcAYF0pDbF2jkAaBYcSPYxqabYlLy AJRK7jfOF/1jBQ2DuHOJo/J9hox1sgNQVdO4YvxY1jyE08mL5kqisvCKQOoU6a4BRpJO 8+Kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784807918; x=1785412718; h=content-type: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:content-type; bh=NC7EUuaERmwRUjpxFJ+SlZvPScb3xGh6wRASl7q1iCc=; b=FkcNrkH7BFwjpZjlbSv0cUR4jmAC0M7ZblpF2yZS+DTe0+3HHf+MF2z0WNzpAMSCtc /UmcqalMPowWBYL2Kn+FWAGeogICC2KQhkEBAh5JzpX15+2fDFklVIituDZP0IbZc+xO 3ygvr+rOvt1vyDyKzXCJT1PiuK98a1RKs0VWySSYUE8mosoF+3ExZO1S4ajrPnw5QrAH JxbcGmxJw4JcrzvVDKC0S1c3E7QmPVV6QjtR0VrN5/URI/SIs1Upz9TetMmnXfltfh7f 9I8RNE65OWXYhtPKmgAkhgWFeLeIZU3xcYTiT0SxP0UZmDkshFiwt/yEM7mGrCl79Cft bIMA== X-Forwarded-Encrypted: i=1; AHgh+RqqXIT9390h9Q8aBzw7bFwlncJLtSYPutGg35JosTVJCmDyxVMsrfraEXgbTyNMctZ7joBXjtgvi73xlJw=@vger.kernel.org X-Gm-Message-State: AOJu0YxPLWdAWr8p5eC5zes3Tyl2UOuVfwyrn6D5B+hAuqIvEpemhgyZ 2mR+kSW1Lm0/QjhWwmWvRgKc7Q0LSrG7RKqT0QbmViBbq3dxgYLJDKyWBp60WNVy756S4LvB4ah NX0pn6e76v6//zlIo6g== X-Received: from wmtl20.prod.google.com ([2002:a05:600c:c494:b0:493:aecc:773c]) (user=aliceryhl job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:470a:b0:495:4572:21af with SMTP id 5b1f17b1804b1-49573cc966emr29430075e9.9.1784807917779; Thu, 23 Jul 2026 04:58:37 -0700 (PDT) Date: Thu, 23 Jul 2026 11:58:36 +0000 In-Reply-To: <20260722-defer-complete-v2-1-6c67af0e2ac2@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260722-defer-complete-v2-1-6c67af0e2ac2@google.com> Message-ID: Subject: Re: [PATCH v2] rust_binder: add TF_DEFER_COMPLETE flag for avoiding userspace roundtrip From: Alice Ryhl To: Greg Kroah-Hartman , Todd Kjos , Carlos Llamas Cc: Miguel Ojeda , Boqun Feng , Gary Guo , "=?utf-8?B?QmrDtnJu?= Roy Baron" , Benno Lossin , Andreas Hindborg , Trevor Gross , Danilo Krummrich , Daniel Almeida , Tamir Duberstein , Alexandre Courbot , "Onur =?utf-8?B?w5Z6a2Fu?=" , rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" On Wed, Jul 22, 2026 at 09:09:22PM +0000, Alice Ryhl wrote: > + // Note that if the thread list is empty, then the call to `pop_work()` has changed > + // `process_work_list` back to `false` even if we set it to `true` above. > + thread_has_deferred_work = inner.process_work_list; Oops, as sashiko points out, this should be: thread_has_deferred_work = !inner.work_list.is_empty(); Alice