Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp2753680imj; Mon, 11 Feb 2019 08:00:23 -0800 (PST) X-Google-Smtp-Source: AHgI3IYCA9mgpYnmF8iVsO1/pywmoA87xcbjQ27Js7UtVPdoad0vuX6QAb6IwiFHrDjYZ+vhL3er X-Received: by 2002:a63:fa48:: with SMTP id g8mr34185743pgk.203.1549900823038; Mon, 11 Feb 2019 08:00:23 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549900823; cv=none; d=google.com; s=arc-20160816; b=lU6ADufETRCQoK55T/Z2uq3/zKvFUxP0d1//Kw97Y36al2CeBCtrcBk1fh5g86UT5o At5ChwYazltQhHhMqasbdqS5e/COlVB/LD+uSVfvlC8OdsYoz/ah86YWIYK8fJ6w29cV nMD9F9Mjn3a0hStox7F9D4Ne8890Kya0GjB9V6biVA+Mpfgg6t6+Ay7+VHRgut433fTv ZS15+trLQS79ZPMxtBqAbZ7pu2p5iNqRYh3asSsQv45UUBCqJ5wVtKFWiI3UrbiJHfKg t7iayGomqaItJmvP0wlQzjnFRWok5WN5QprpzOcDDAITSqWEl1EHzizq32xKV6pFDloB IHuw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=sVsOpcQUtO7sPfdHOI+adq+4MY7UTv/EKIArFYUwl8E=; b=DHU8QEPlR+zJymbwy7snQY5gmmAeYlfLuzd3kX8PdGvxr8K/B9yvbvcoexKbToZFfv aJqX2o062oYtSgd70sKGDzVNyTvnlTC4l+8rHldSISRJLQGjJB0vtP/1dJivc34NHnI+ egKu9Tb5JD5k8bwSFhNxQkdHk2GMoR99ps6fPnri2TObReM7wtKAkyePF0I5OluLssGg 4CcS8DKkIebwTuMjmNjexsNxX0gVRSUQizRvJ2hN2gTeQjSe009QbBwy3vxBlqutGFtK S7AiN2hN8CsPJiSwHfjMoT6dTFYDL4muMFQFKt0pqjHvNWvyLcAXuwc0qJiPj5XffkAn J/9w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v3si9821762pga.556.2019.02.11.08.00.05; Mon, 11 Feb 2019 08:00:23 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731454AbfBKP6M (ORCPT + 99 others); Mon, 11 Feb 2019 10:58:12 -0500 Received: from mx1.redhat.com ([209.132.183.28]:45432 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729994AbfBKP6L (ORCPT ); Mon, 11 Feb 2019 10:58:11 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 672F42DD2A; Mon, 11 Feb 2019 15:58:10 +0000 (UTC) Received: from parsley.fieldses.org (ovpn-123-64.rdu2.redhat.com [10.10.123.64]) by smtp.corp.redhat.com (Postfix) with ESMTP id 4FA9619741; Mon, 11 Feb 2019 15:58:05 +0000 (UTC) Received: by parsley.fieldses.org (Postfix, from userid 2815) id 395D81801AB; Mon, 11 Feb 2019 10:58:04 -0500 (EST) Date: Mon, 11 Feb 2019 10:58:04 -0500 From: "J. Bruce Fields" To: Jeff Layton Cc: linux-nfs@vger.kernel.org, linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org, Trond Myklebust , David Howells , Tejun Heo , Peter Zijlstra , Shaohua Li , Oleg Nesterov Subject: Re: [PATCH 0/7] Eliminate delegation self-conflicts Message-ID: <20190211155803.GA28714@parsley.fieldses.org> References: <1549656647-25115-1-git-send-email-bfields@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.38]); Mon, 11 Feb 2019 15:58:10 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Feb 09, 2019 at 07:43:54AM -0500, Jeff Layton wrote: > On Fri, 2019-02-08 at 15:10 -0500, J. Bruce Fields wrote: > > From: "J. Bruce Fields" > > > > These patches allow NFSv4 clients holding delegations to keep them when > > the operation that would break a delegation comes from the same client. > > > > To do that, we somehow need to pass the identity of the > > delegation-breaker down through the VFS. > > > > This series uses the tgid, a solution suggested by Trond. To do that we > > need nfsd tasks to share the same tgid. I do that by extending the > > kthread code slightly to allow knfsd to run the kthreadd main loop in a > > task of its own, and spawn its server threads off of that task. ... > Nice work! I like the basic idea, the changes seem to be well-organized, > and the tgid semantics are clear and make sense. > > Would this preclude us from moving to a workqueue-based model for knfsd > later? It's likely to still be worth it, but it'd be good to understand > the potential drawbacks. I was wondering about that too, but I haven't looked into it yet. Workqueues look a lot more complicated than kthreads. --b.