Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp996869ybz; Fri, 1 May 2020 12:23:31 -0700 (PDT) X-Google-Smtp-Source: APiQypJ5OBz/93fBAGsOm0VnRBRjbfTzXWSNN5spd6hEZsDIAxKbq8z2j4QSJLHzP4XASaNwMEfN X-Received: by 2002:a17:906:17c5:: with SMTP id u5mr4673906eje.275.1588361010776; Fri, 01 May 2020 12:23:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588361010; cv=none; d=google.com; s=arc-20160816; b=TyiB8jiSrD4hnnWpufYz0eejJA3sSwA86ICsBhMAqjDrHP20QMfC5LuKnE1sor4li6 dP6SbucxsXoIZ96/WDRCfSJ5WVheWo0dIVj1gN7/r3SlcpdnbCmCg5i0L0wBfvJdfBml GreLVNsIUv7hLIuGqs6b/4FP2GhHtaISYjkkANcpN1PW+djqIY7u0q32q2Tg6zVd9V0v 9yIr4OLbCXnLIUa6qBr2xa1unnQSck8z+IhOoyX8NRpCVftfsOsWv+LDzwefT9b1JFlX HkNQ9TWhAxlxunkMiCXQW9qKmepaUuN8TttBMaDlXsTTZ+G+FNjpkUZ1KdTYf+c9QOry dMhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=Uvr7NE+VoOzpD9fS1fNpWQ3alb4De94rrwIJLuJTDvI=; b=NNca86oWgwwDI8bKPRBzVu0dL9O0GIhN7vzY+VOYxWtivHaDXEwim19zJuhAX7m9bv COg60eNzfu9/rdeEJTr8o1xZfeDkN0o7nVWUAraAxMychhsCo+zXXpcTmxZ5PC2yq3Hn LirUHmmUdJVo8Vqqt84XpSxFs9QcjbUGKXmHXroX+tKYYVZ9QYuh05NY1ZcodQ4B+Ciw igwpnfGC6iflH0TLtXeSjeXMQmnHq38saGzpevcCWHNH2UbYzKOay4I6QTZToYYbUryV CKtnETpQtmwC3WgHGJLI+2djtuOTeTMKVdASpGbFopsvkNFXBc6KA+lb54woCCk27HRe PlWQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IlAU2fgF; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id w21si2325146ejz.276.2020.05.01.12.23.06; Fri, 01 May 2020 12:23:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=IlAU2fgF; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726736AbgEATW2 (ORCPT + 99 others); Fri, 1 May 2020 15:22:28 -0400 Received: from us-smtp-1.mimecast.com ([207.211.31.81]:29642 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726702AbgEATW1 (ORCPT ); Fri, 1 May 2020 15:22:27 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588360947; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=Uvr7NE+VoOzpD9fS1fNpWQ3alb4De94rrwIJLuJTDvI=; b=IlAU2fgFr/xFimsCTaIdPg8RMBVh/eD164bGUwoVPBKugfH1SgEX/E1VHyzOylyPmufSrP gDzUHyYWN+7OT2/PwXBGuCgOWDR04iG4Zfd1QCMARpYMHF/xD+eP7r5yMs5XUMOZGL7KVz vZaeSbQKlS57MWs6MDwYQDDdXqDc7Ds= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-361-0yGqluTzMCaj3-bbGH5WfA-1; Fri, 01 May 2020 15:22:25 -0400 X-MC-Unique: 0yGqluTzMCaj3-bbGH5WfA-1 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 mimecast-mx01.redhat.com (Postfix) with ESMTPS id E407D8014D9; Fri, 1 May 2020 19:22:23 +0000 (UTC) Received: from pick.fieldses.org (ovpn-114-161.phx2.redhat.com [10.3.114.161]) by smtp.corp.redhat.com (Postfix) with ESMTPS id E4D542B4CB; Fri, 1 May 2020 19:22:20 +0000 (UTC) Received: by pick.fieldses.org (Postfix, from userid 2815) id 04C461202A6; Fri, 1 May 2020 15:22:19 -0400 (EDT) Date: Fri, 1 May 2020 15:22:19 -0400 From: "J. Bruce Fields" To: Trond Myklebust Cc: "tj@kernel.org" , "torvalds@linux-foundation.org" , "jlayton@redhat.com" , "linux-nfs@vger.kernel.org" , "shli@fb.com" , "linux-kernel@vger.kernel.org" , "dhowells@redhat.com" , "oleg@redhat.com" Subject: Re: [PATCH 0/4] allow multiple kthreadd's Message-ID: <20200501192219.GG9191@pick.fieldses.org> References: <1588348912-24781-1-git-send-email-bfields@redhat.com> <20200501182154.GG5462@mtj.thefacebook.com> <20200501184935.GD9191@pick.fieldses.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org On Fri, May 01, 2020 at 07:05:46PM +0000, Trond Myklebust wrote: > On Fri, 2020-05-01 at 14:49 -0400, J. Bruce Fields wrote: > > On Fri, May 01, 2020 at 02:21:54PM -0400, Tejun Heo wrote: > > > Hello, > > > > > > On Fri, May 01, 2020 at 10:59:24AM -0700, Linus Torvalds wrote: > > > > Which kind of makes me want to point a finger at Tejun. But it's > > > > been > > > > mostly PeterZ touching this file lately.. > > > > > > Looks fine to me too. I don't quite understand the usecase tho. It > > > looks > > > like all it's being used for is to tag some kthreads as belonging > > > to the > > > same group. > > > > Pretty much. > > Wen running an instance of knfsd from inside a container, you want to > be able to have the knfsd kthreads be parented to the container init > process so that they get killed off when the container is killed. > > Right now, we can easily leak those kernel threads simply by killing > the container. Oh, got it. Currently knfsd supports nfs service in containers, but it uses a single set of threads to serve requests from any container. It should shut the server threads down when the last container using them goes away. --b.