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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 0EA47C43334 for ; Mon, 27 Jun 2022 08:11:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233090AbiF0ILn (ORCPT ); Mon, 27 Jun 2022 04:11:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44928 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232628AbiF0ILl (ORCPT ); Mon, 27 Jun 2022 04:11:41 -0400 Received: from mail-pf1-x42a.google.com (mail-pf1-x42a.google.com [IPv6:2607:f8b0:4864:20::42a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7C4FF6175 for ; Mon, 27 Jun 2022 01:11:40 -0700 (PDT) Received: by mail-pf1-x42a.google.com with SMTP id i64so8265236pfc.8 for ; Mon, 27 Jun 2022 01:11:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=W3ppXV9ADhCkNwjk09PpXEVjLYngtZSAN5zmynsUohw=; b=B+JGqBiyivQYZouaaGnqLMJTiNYHClos19cIuC6bk+a9yN/DypqE4vcEuTBFm9CqKZ yxAhmkHMiUeGDmoug8+DU0NZYWRgV6cql/UTqWp5bhP0wHNTv4wLQellpIc4OLZ2BxYa boKfnruiVDvNMHdlgEmKIF9xmypIUFcAbK2UrOy05YcQSrpslZXigVvXGWGn+gGjjDhJ rcNDY3TacsWMkg4ySbPkFS6O9WqH0W9uQgKDKYp1mOc3pm8iU1fQUmEJh4NDKnaVhIxj bULq+qMAyAm5w04hBUNQE33obtPaFaGu7dxSS5BL0WK2DIkIVY0aUn3pHsi9U2axhRQy a5Vw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=W3ppXV9ADhCkNwjk09PpXEVjLYngtZSAN5zmynsUohw=; b=4S6RuT8PYWl3yFBbNg/AAGakpSWm/MgexCbrHax5O8irjNG2kkeVJyQoEH8u/yzVSP L9Xcu0cQgD3cN9jmXfD188bdwcb8ClFAmpAsS0u9wAsyP4fz+3OeLqtAECibj7Y25JhR YT1JS/2y+ywSAqtj3tBfwkl+dW31dEvqdgKPuLIlbe9n/IM41P91D/dP3jVFgLdchPe2 iKigsWPkLYXl1PmFLDkv/5n9m+pvwQYRmWT+Ku1BryX35O80m4tl/+jt1UsnR9yAqqNl sWPEmPUAVgMpgcbj/OusnKP5mLXlgUBNapp1tIloxF4Fhn1Vlx1M3zj/azlwHPMOAC7r QRrQ== X-Gm-Message-State: AJIora9gwvkpHZP8KQxlsIx1LvmM4LbWIgrCW3O9AYpj1x9Dory++YSJ 64dWXYhn4zGOWFCerZvHDxs= X-Google-Smtp-Source: AGRyM1vwpIHrCNGxeWEtpOJyrJodLmGJ1ELq7vRz784eu5BZf/54vth7svdeV5zHenbFo5EGlAEbyg== X-Received: by 2002:a05:6a00:ad0:b0:50a:51b3:1e3d with SMTP id c16-20020a056a000ad000b0050a51b31e3dmr13602986pfl.18.1656317499754; Mon, 27 Jun 2022 01:11:39 -0700 (PDT) Received: from localhost ([121.167.227.144]) by smtp.gmail.com with ESMTPSA id g10-20020a170902934a00b0016a11b9aeaasm6483669plp.225.2022.06.27.01.11.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jun 2022 01:11:38 -0700 (PDT) Sender: Tejun Heo Date: Mon, 27 Jun 2022 17:11:36 +0900 From: Tejun Heo To: Peter Zijlstra Cc: Linus Torvalds , "Eric W. Biederman" , Christian Brauner , Petr Mladek , Lai Jiangshan , Michal Hocko , Linux Kernel Mailing List , Thomas Gleixner , Ingo Molnar , Andrew Morton , Oleg Nesterov Subject: Re: [PATCH 3/3] kthread: Stop abusing TASK_UNINTERRUPTIBLE (INCOMPLETE) Message-ID: References: <87pmiw1fy6.fsf@email.froward.int.ebiederm.org> <87ilonuti2.fsf_-_@email.froward.int.ebiederm.org> <871qvbutex.fsf_-_@email.froward.int.ebiederm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 27, 2022 at 09:22:37AM +0200, Peter Zijlstra wrote: > Yes, I so wish C had reasonable lambda expressions :/ But even if we > could come up with a semi sensible syntax and implementation, it would > still be many *many* years before we could actually use it in-kernel :-( Yeah, I have a hard time imagining this happening in C but maybe we'll get pretty good closure support through rust-in-kernel if that works out. That'd be pretty sweet even though we might not be able to use it everywhere. Thanks. -- tejun