Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp212767lqp; Tue, 11 Jun 2024 21:39:32 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVJoLZwPf+iAH2T30nBylwDg+OZEq33G/Smsm9TKACy5tYN45SAEW76piC5d+JiPndQ4BCMJwFa0p9cPzactrLgnGFv+ZUDAo+OXQCOXQ== X-Google-Smtp-Source: AGHT+IEw5QXRYDIeFebew9PaOg2FwTD5Djz/oRMf3sZxl0Kb/eFlBWp4hIncRFi3/EhtJ1iPDHz6 X-Received: by 2002:a05:620a:4495:b0:795:5fc1:321e with SMTP id af79cd13be357-797f60c0abcmr65844485a.50.1718167172479; Tue, 11 Jun 2024 21:39:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718167172; cv=pass; d=google.com; s=arc-20160816; b=Sr5h0aMC7p8V/W6iuc0vwXzAlxnZAbGjK9Rb6ZoNBfiXXrNXUG54bCzgmJpCWbV4DU DzEdRcekM1H6e2VT172eJ8QhYHLtO2XV8P3LyJ2QzOd9woPq88VlqPt1k2cFnWp4qdhp PrYn/wzKEFQ+TbHzvl8WBAVjuDeWiYjvivoLF0L98txs1XeVA2uGAcfz+vPPHoUNRci0 mqmqdSHFsFBsTTr5aVWhiHZO62aY9Z+muv/+Bh+ardDuSvVIT2G6J4nWSjAlpVErn97x mzE3xxBE/73vr+8iQBTH2qN69UL33q0DQqCnhfd4J8wB9I3to4VJZGGpLIZdObD7syFv ayWQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=message-id:date:references:in-reply-to:subject:cc:to:from :mime-version:list-unsubscribe:list-subscribe:list-id:precedence :content-transfer-encoding:dkim-signature:dkim-signature :dkim-signature:dkim-signature; bh=k3wo5EkhpP4WDZTnjcoQ4st6bEjO+Gwn6j5Ex2FrRiQ=; fh=Xhy6A2tLn1FqA5OoY9vKm7aRPNkLGlKWWyj5D1TdV/8=; b=khJRX74yEZNNHU4GmtEjUog4MvgzQjQQmlLM59SuyC1nnJc0AhzFda4Ktdzeq3c3nB /5xLtxtfWLPjdbHu9jMY/LVBYQrZIGxp/sXbXronL7zw5gzNJ91mTYFDTvFvEwRmzqpe RGqH37w146hHJbjHOaPqys5yezhooQxqZlrx4mAubJ1R1o0baYvNSEILzzii88J55TJ9 bPgEPFa8tZTLwGjL3t8jmwqpnxVU46T3HOktAkAdZzVtClCdyxFrX8SwQF1H5x82iUoT VNj6AvfB1Kb1VBzKaOnTpRsTe7oQt6SIrCNd8vYzdkuQCWHJPwKEIVHCN1sFMKB6jdJa K9tQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=DvHmMYYa; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=ahvRYQe+; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-nfs+bounces-3682-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3682-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id af79cd13be357-795331cad54si1138259585a.347.2024.06.11.21.39.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 21:39:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs+bounces-3682-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=DvHmMYYa; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=ahvRYQe+; dkim=neutral (no key) header.i=@suse.de header.s=susede2_ed25519; arc=pass (i=1 spf=pass spfdomain=suse.de dkim=pass dkdomain=suse.de dkim=pass dkdomain=suse.de dmarc=pass fromdomain=suse.de); spf=pass (google.com: domain of linux-nfs+bounces-3682-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-nfs+bounces-3682-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 248531C2370B for ; Wed, 12 Jun 2024 04:39:32 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 80580250EC; Wed, 12 Jun 2024 04:39:30 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="DvHmMYYa"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="j3aoa0nq"; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="ahvRYQe+"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="smLqdDx+" X-Original-To: linux-nfs@vger.kernel.org Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.223.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E198E20DFF for ; Wed, 12 Jun 2024 04:39:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.131 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718167170; cv=none; b=Ox4igga6Nk8de1o7IhLffprEzaajNdm37zUkmJ7UmHgy+NE16jJVjb2a71a7tOBqhT6sDOOPK663ELmZ+yb5u2Vb0rf4iQq0x2Rpzpn3NDLdYyHDsw50wABCI+LL2TJPlWrysi77wnW85Fs/Wb7ZErju/Y8OWFPEoCsnq/X8rxU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718167170; c=relaxed/simple; bh=NwWPrAeM2mQ67ELWvaTnws6c03oGHchZ7MZFKh/ZWx0=; h=Content-Type:MIME-Version:From:To:Cc:Subject:In-reply-to: References:Date:Message-id; b=OhaMW0WCpyOj32KZcD6u9BUSrnWpLuLhA0NAA24zHpv7azu8SRfYeY70ojvPdAsZVrkOo9Ve2IlJlnCXD9XcIu+8o1hpB5WXzS7+8xUTIKPJlJS+zvP1UCQBdZWLz22acOOeBrpE6bzGInClHNOOy//7FCqB/wcH2f26iqnRMTw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de; spf=pass smtp.mailfrom=suse.de; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=DvHmMYYa; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=j3aoa0nq; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b=ahvRYQe+; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b=smLqdDx+; arc=none smtp.client-ip=195.135.223.131 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=suse.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.de Received: from imap1.dmz-prg2.suse.org (unknown [10.150.64.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id E694F20F76; Wed, 12 Jun 2024 04:39:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1718167166; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=k3wo5EkhpP4WDZTnjcoQ4st6bEjO+Gwn6j5Ex2FrRiQ=; b=DvHmMYYaaJmvlF6GXujGEtnCc/qkfJVmKyjjGGYBGMwM8lwNLIUHpouocxLCGCFDBiNPwQ /OoK6KRlR1pN2LeOfE+WKIQKYVyw4dygH1sRj6FVX6ukd51W5SynT1nowbXpDhLl3RZW+M GHnbl5Dv66O4tEAEWo3CZZamJNu5osk= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1718167166; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=k3wo5EkhpP4WDZTnjcoQ4st6bEjO+Gwn6j5Ex2FrRiQ=; b=j3aoa0nqbTPgOu+uPpV95lk1DLVqCFmYpMxQtN/syIPToKXSsOPkMPtiwFIrDolEz26QWR ASzf6EmMQ5bH7OCA== Authentication-Results: smtp-out2.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1718167165; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=k3wo5EkhpP4WDZTnjcoQ4st6bEjO+Gwn6j5Ex2FrRiQ=; b=ahvRYQe+53DFFpoMaY/CpgoyV1Fs3xo6KQzG5IoJuLljKmuU9sur7DHz2FuvsTJQmdYvds eX7LibGmdMsMiWhSrtgJDhqJFbLThqZ8XNI+doazR/2sntDmtevbrojLfFwOMaMsXjFLKy DzyV6q6pN6Td122dLDtI0Teac9wWFI0= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1718167165; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=k3wo5EkhpP4WDZTnjcoQ4st6bEjO+Gwn6j5Ex2FrRiQ=; b=smLqdDx+tH86qeaC9dKyaUkY1lNtxDfSqknrQF8wejLhIM3RgVVTEvQ25fybHEcXiQHtYd QH1XjhN5tLlRbOCQ== Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 57F7D137DF; Wed, 12 Jun 2024 04:39:22 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id LlY8O3omaWbMIAAAD6G6ig (envelope-from ); Wed, 12 Jun 2024 04:39:22 +0000 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk X-Mailing-List: linux-nfs@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 From: "NeilBrown" To: "Mike Snitzer" Cc: linux-nfs@vger.kernel.org, "Jeff Layton" , "Chuck Lever" , "Trond Myklebust" , snitzer@hammerspace.com Subject: Re: [RFC PATCH v2 08/15] NFS: for localio don't call filesystem read() and write() routines directly In-reply-to: <20240612030752.31754-9-snitzer@kernel.org> References: <20240612030752.31754-1-snitzer@kernel.org>, <20240612030752.31754-9-snitzer@kernel.org> Date: Wed, 12 Jun 2024 14:39:15 +1000 Message-id: <171816715571.14261.10325425432606108026@noble.neil.brown.name> X-Spam-Score: -4.30 X-Spam-Level: X-Spam-Flag: NO X-Spamd-Result: default: False [-4.30 / 50.00]; BAYES_HAM(-3.00)[99.98%]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; MISSING_XM_UA(0.00)[]; MIME_TRACE(0.00)[0:+]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_TLS_ALL(0.00)[]; DKIM_SIGNED(0.00)[suse.de:s=susede2_rsa,suse.de:s=susede2_ed25519]; FUZZY_BLOCKED(0.00)[rspamd.com]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; RCPT_COUNT_FIVE(0.00)[6] On Wed, 12 Jun 2024, Mike Snitzer wrote: > From: Trond Myklebust > > Some filesystem writeback routines can end up taking up a lot of stack > space (particularly xfs). Instead of risking running over due to the > extra overhead from the NFS stack, we should just call these routines > from a workqueue job. > Do we really need this today? Kernel stack is a lot bigger than it once was. If we do need it, do we need a dedicated workqueue? Why not just use system_unbound_wq ?? NeilBrown