Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp93691rdb; Mon, 4 Dec 2023 22:27:40 -0800 (PST) X-Google-Smtp-Source: AGHT+IHW/sMoWw5D1ZpWJvWa2Ge/mqPMiMCGbs3u/Ae2vvynt6rYjVPgopo9nLoWMuep87TpGOh+ X-Received: by 2002:a9d:7409:0:b0:6d7:ebc9:216f with SMTP id n9-20020a9d7409000000b006d7ebc9216fmr5362097otk.34.1701757659932; Mon, 04 Dec 2023 22:27:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701757659; cv=none; d=google.com; s=arc-20160816; b=lZhlxPvEJ1RwDRy+aBY0r8gjhY1EeiJV2Zwb5g02mroHUg0gOdsw18yjcOotZ2iNOh qdUWKes8VOBMMyWUItBP6Kf4Cg2/9KO24ZAUd6CkiHa+PoJy1fSxEL51n1JT7yLPz+TE AOF2xyG+pm3tjA7WxVY4uxSE9iekbUhy9xNnx4/jj8+4OaX8qI4Y4/VQtVmKGdroIHeC LQHsTgir4ftB6FzCsIgR6dZ/dho2SpbbkoUrsPKaSk/n2qxeOLAcudXtdi1AFZZaoXp7 HVzcAfxmGM2wDv/NZXuxcwJ4wqwWoPktxSeEASabsC7Hv71423e8SNobPrH9RoMDeJoX 5fSw== 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:dkim-signature; bh=bhXYhRtk/KY/XHQgM/c3wDRTe8PmVUkWLPFRhdkev5c=; fh=+qd/FlBCtbnf4KHfSWBBrhG/QkDaUMKVTBYeffSRxpo=; b=dqpOE8wp9kuCOwLMX4aooDpf0VANy9OcCpTMrL7tLzVuz8F+S4uuiOyffPZjn2KaOR tqxPKK3bOgDH376tGp5aqdwUBsUtBfOqXCe/JYirCPegWye3cvlzJ0fiN6ZcffAz2FAi Mn31r+q8ngHJuebQEWw3ViyMS+wAsO6h9jE6F0+YBo8DOpbb0ctj1iiNHaasnbnrT3qw dXuaWDXoyV2Bt3AzlZIxoySmPOSvwK+Se+6AOjibUH7wvOmEUDh6nzFaAXWOsxo4FurM DN3vMfsuX0perN9KKUpGv23dRAHzqWd3SGfrdBBiptjGWC85WDfWH/Ujmzg4wN7C9niD P3VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@fromorbit-com.20230601.gappssmtp.com header.s=20230601 header.b=VDe5+ovG; spf=pass (google.com: domain of linux-nfs+bounces-325-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-325-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fromorbit.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 1-20020a631141000000b0058974d3c296si9306547pgr.815.2023.12.04.22.27.39 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 22:27:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-nfs+bounces-325-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@fromorbit-com.20230601.gappssmtp.com header.s=20230601 header.b=VDe5+ovG; spf=pass (google.com: domain of linux-nfs+bounces-325-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-nfs+bounces-325-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=fromorbit.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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 9329F28146E for ; Tue, 5 Dec 2023 06:27:39 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8319DDF5E; Tue, 5 Dec 2023 06:27:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=fromorbit-com.20230601.gappssmtp.com header.i=@fromorbit-com.20230601.gappssmtp.com header.b="VDe5+ovG" X-Original-To: linux-nfs@vger.kernel.org Received: from mail-pl1-x62b.google.com (mail-pl1-x62b.google.com [IPv6:2607:f8b0:4864:20::62b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2A031FA for ; Mon, 4 Dec 2023 22:27:32 -0800 (PST) Received: by mail-pl1-x62b.google.com with SMTP id d9443c01a7336-1d076ebf79cso12310975ad.1 for ; Mon, 04 Dec 2023 22:27:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fromorbit-com.20230601.gappssmtp.com; s=20230601; t=1701757651; x=1702362451; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=bhXYhRtk/KY/XHQgM/c3wDRTe8PmVUkWLPFRhdkev5c=; b=VDe5+ovG8apuH9dXqs7gsMH9oPS5VeZljXRRqfAjOh2gxR7byrpmJBz8ho6pfbKHwj qOQueLGVaKVco4VFZRtCC3urwX7rrqenY+YpYgYxCLlpClPkSJH0xmSYE3BeRS9oLQuk rL6H1uJbzrwFyzUTAfBYsQvJZxkBcjymMIx5M/QYqN1BOvG9AEOiADt3hAIdSJY+5yHb uxk8ARsAojkzwMwWN+ZbGr9H+HSetccLBaaK5uXCR5bONn87bPUp4cFUc7fjI+EVf4uL of3qfum9sd2ESOS3hGv6ksMK4/wPitekuefp+H7TRUs/GZsktGX+ozYqhed46pnSZjiE zGdg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701757651; x=1702362451; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=bhXYhRtk/KY/XHQgM/c3wDRTe8PmVUkWLPFRhdkev5c=; b=WDmcfPHcYto5KHY8anXUfM8xs3JtAPi2KTx/S1blLso8DwbFG+4Ib1gM7Jx7Uldln8 /ZcCuS7AQGoscvv0SPEmOqp5wAGgwYSqUe2AmtiyOtjcKref+JOCFFhk5bmgqmT7Istq rfwPaelmMbWGELNae1aTmgcAHpkVs7NfltOPqsLTSRaXsvsvnBl2O8iTMwiunO0t+QrT 0r06GoZHBaxJrp0GE7YMFGFnRbc6nVNJsTZ/XM/+uyrgAABcXPNxPVgQJuqSbZMGe22f JjYr53jouZrx1RQfe4yUgM45CKxsclBFJtSh4dovA2fwaRHoeXZp2MMLQJS8n0OuHdc+ Nvxg== X-Gm-Message-State: AOJu0YxYWUnHEspdU+4CxNZouANivkJZMRJN4T5PjB3zf/EjQ8DLTdoi aOJa9pJAS+dKkem85LcpbBR0GwmzleeVGIzGCJo= X-Received: by 2002:a17:902:c40d:b0:1cf:6ac3:81c2 with SMTP id k13-20020a170902c40d00b001cf6ac381c2mr3414170plk.47.1701757651517; Mon, 04 Dec 2023 22:27:31 -0800 (PST) Received: from dread.disaster.area (pa49-180-125-5.pa.nsw.optusnet.com.au. [49.180.125.5]) by smtp.gmail.com with ESMTPSA id k10-20020a170902c40a00b001d087f68ef8sm543248plk.37.2023.12.04.22.27.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 04 Dec 2023 22:27:31 -0800 (PST) Received: from dave by dread.disaster.area with local (Exim 4.96) (envelope-from ) id 1rAOu0-00449x-2P; Tue, 05 Dec 2023 17:27:28 +1100 Date: Tue, 5 Dec 2023 17:27:28 +1100 From: Dave Chinner To: NeilBrown Cc: Al Viro , Christian Brauner , Jens Axboe , Oleg Nesterov , Chuck Lever , Jeff Layton , Ingo Molnar , Peter Zijlstra , Juri Lelli , Vincent Guittot , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, linux-nfs@vger.kernel.org Subject: Re: [PATCH 1/2] Allow a kthread to declare that it calls task_work_run() Message-ID: References: <20231204014042.6754-1-neilb@suse.de> <20231204014042.6754-2-neilb@suse.de> <20231204024031.GV38156@ZenIV> <170172483155.7109.15983228851050210918@noble.neil.brown.name> Precedence: bulk X-Mailing-List: linux-nfs@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: <170172483155.7109.15983228851050210918@noble.neil.brown.name> On Tue, Dec 05, 2023 at 08:20:31AM +1100, NeilBrown wrote: > On Mon, 04 Dec 2023, Al Viro wrote: > > On Mon, Dec 04, 2023 at 12:36:41PM +1100, NeilBrown wrote: > > > > > This means that any cost for doing the work is not imposed on the kernel > > > thread, and importantly excessive amounts of work cannot apply > > > back-pressure to reduce the amount of new work queued. > > > > It also means that a stuck ->release() won't end up with stuck > > kernel thread... > > Is a stuck kernel thread any worse than a stuck user-space thread? > > > > > > earlier than would be ideal. When __dput (from the workqueue) calls > > > > WTF is that __dput thing? __fput, perhaps? > > Either __fput or dput :-) > ->release isn't the problem that I am seeing. > The call trace that I see causing problems is > __fput -> dput -> dentry_kill -> destroy_inode -> xfs_fs_destroy_inode What problem, exactly, are you having with xfs_fs_destroy_inode()? -Dave. -- Dave Chinner david@fromorbit.com