Received: by 2002:a89:d88:0:b0:1fa:5c73:8e2d with SMTP id eb8csp2456645lqb; Mon, 27 May 2024 23:31:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWRrISZOPXYlCXwFf04RkzuNVu87GQidu/BsUK2cA65uSZ+RJdq9zUfgB5/nRCQPdgZsoVx4+Xjqncml4VDWkuQ8YJ1RQp3/Yz8+IGvYA== X-Google-Smtp-Source: AGHT+IGoWSCwtxjU2reqLbMWGlQqh2deceHjeJbLC5G4etYK/44pvlBrOtzUg+14/uwzcJPaC8i+ X-Received: by 2002:a05:6a00:4a07:b0:6fb:ce05:4965 with SMTP id d2e1a72fcca58-6fbce054ac6mr11239424b3a.1.1716877883537; Mon, 27 May 2024 23:31:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1716877883; cv=pass; d=google.com; s=arc-20160816; b=N/2pBrNtlawxQfjiOzARyGNdByw/FmM3MOu9oidwoa4lbOva98MHsR+Q/szicZJDRJ +AJ7Rziqy3gRepppi+vd0x+0zzatNZ2XPLC4+NXRqwbwsJagSPUPAWACYGhizdynMhCX jd59Q2XOUYb8GTRHIFva4OaLl17WmT4/hIB2p7TC1yEj+CA6WyNi6C49YuCflccWKKpq 3IFr5IsagejhkD3AxecceLf80yVSku0AIDDbcipMGsenoAtnFxnVu5MzYgzMfJvZ3PJd OXYc5dhaDDxI2bxrJbIopDIJfswQS23mlg4caqpIIgkwTXIeLcu4nL8UyQxD0kGDh9IQ 3OoQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=user-agent:in-reply-to:content-disposition:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:references :message-id:subject:cc:to:from:date; bh=Us0ikjG+JUxQxOWfW3Oh9bjGMp8p6F05tQTo8cWcwek=; fh=a9DMVpV+r+ThbNpFUpqAp63+DnAWSyXBfHfYRO1G/A8=; b=UHq9LM/dQUNcW+lWrGY0qDdFKJHu3pMUo+w/5wiEBgvc3rcurblITRCWiLgfRUxOkE EheF0YajAGeU2toO/vcvpGVe5x4TRKs00q41tLZha5ml0AkaKOU+LOX8xRQSP26u4J7J SYyuoDM9ZxaEU/kjNzBTVFsGh7cPLbyb2CqZq/uUbAwz/TzN1kHOQs4LYr+caunXFkmN zlFwCGrcKWUL0nIlRD/yrvwigG/gz8xMCkXPLpvYpzWyh3yaEE7wyAXR9OefYzaLoAXK LidKohMwPWN48l13YNAuYv9ySbW1JYWeCtzwgeXtBHfxU0OGcRatIyTcFSUgDgGBbz99 jWhQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-191808-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191808-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6822bbc785bsi7817871a12.891.2024.05.27.23.31.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 May 2024 23:31:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-191808-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=lst.de); spf=pass (google.com: domain of linux-kernel+bounces-191808-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-191808-linux.lists.archive=gmail.com@vger.kernel.org" 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 1D305283B81 for ; Tue, 28 May 2024 06:31:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id BC78354FAF; Tue, 28 May 2024 06:31:17 +0000 (UTC) Received: from verein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 92FEF8F48 for ; Tue, 28 May 2024 06:31:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.95.11.211 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716877877; cv=none; b=knR3VjmgJyAweCriRMo1i5cUyiOlNVvtF+YyIw1JJurQJGv2cMaC1aKWf4JaBRxT0zwZG6CR10q9umTG63omdPnnR1hoJB8Xp33f8b7SLE/hedBrABVpn1S81vioZxD8Ny0EgWZR4wsePLHne39k6DxxNpY9iuvm37BxgvmlqIg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1716877877; c=relaxed/simple; bh=1pvqTEtklqkSqIZFAPqXsHkD3JkpggMJl6xPHjet5ac=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=JEaswf1abkq2UMfM2PfrHCwUtMzfkrWDTjiMbuMDWNWi5vVQR5EhcvG0h+6eg77UN7OnzZL9S+c2bkgzIj+Rr+hc7sc9gJf46TaJTlteOLrCoens2gBRsBx18axZnlaOlh6sRlbSCFiKMEi2YER5piIRNUiNqlg0znVIOLkexCE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de; spf=pass smtp.mailfrom=lst.de; arc=none smtp.client-ip=213.95.11.211 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=lst.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lst.de Received: by verein.lst.de (Postfix, from userid 2407) id 6D36D67373; Tue, 28 May 2024 08:31:09 +0200 (CEST) Date: Tue, 28 May 2024 08:31:09 +0200 From: Christoph Hellwig To: Stuart Hayes Cc: linux-kernel@vger.kernel.org, Greg Kroah-Hartman , "Rafael J . Wysocki" , Tanjore Suresh , Martin Belanger , Oliver O'Halloran , Daniel Wagner , Keith Busch , Lukas Wunner , David Jeffery , Jeremy Allison , Jens Axboe , Christoph Hellwig , Sagi Grimberg , linux-nvme@lists.infradead.org Subject: Re: [PATCH v6 3/4] driver core: shut down devices asynchronously Message-ID: <20240528063109.GA29965@lst.de> References: <20240516154920.221445-1-stuart.w.hayes@gmail.com> <20240516154920.221445-4-stuart.w.hayes@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@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: <20240516154920.221445-4-stuart.w.hayes@gmail.com> User-Agent: Mutt/1.5.17 (2007-11-01) On Thu, May 16, 2024 at 10:49:19AM -0500, Stuart Hayes wrote: > Add /sys/kernel/async_shutdown to allow user control of this feature: > > safe: shut down all devices synchronously, unless driver prefers async > shutdown (driver opt-in) (default) > on: shut down all devices asynchronously, unless disabled by the driver > (driver opt-out) > off: shut down all devices synchronously The on option seems very odd. IMHO safe is the only really sensible option, and maybe we have to support off as a bandaid due to userspace behavior dependent on synchronous shutdown, but I'd rather try even without that first.