Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp1075481ybi; Sun, 30 Jun 2019 06:55:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqxC/solLTmFPeOEoPtdQHHVluMizW62o/rTBudaLGt2BafQgukXn0rYM52qkbVolRvtICLu X-Received: by 2002:a63:ab08:: with SMTP id p8mr1695331pgf.340.1561902921165; Sun, 30 Jun 2019 06:55:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1561902921; cv=none; d=google.com; s=arc-20160816; b=bDOESGvSHtDhakCFl6kBVUz1FODEE6KyTNwaI03DmnS6EHEPmx1kKhmVbigCv4zzY7 2XWkjN3d+4xmcxXZuAIBw4NTfiCnZmRxidnOfQBehKy3QyKIiI0Fi1OBT0fY66wDN2nC 1cQYb/hSFJkShzzFHstZhkssCnhyBFGvW4iPa/lrBlIDsT5NJHKkclBbJX+WaLcSe1pK JSTwm479CIKEX/O5Bx61cugiqIv6K0sWwN8d9j3knBgw/yivcz+9B3vTtBqdLzdukbsL SIoc5RfHMqvnDdSfUCbd7n1Vf7zRncLOvYmFpP537IY8ebz+ltEne6sqlGINsHvCe/F0 +4QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=0lUkdpLwnsPV2033Gelot7S3NczTnw9f1lWg30kTGWo=; b=KeD90W36Iiwg6/VwCO2sxgonhJqoMRYv7ReYaeLyxBjl4RkEz95U9dk5tNoXtAWTln 8c+6UqQ7MTp8+p9ECgGr+SwYSfA1LLVROvCZxmo/qtJUKmB05qUjhpkOsPy5ubyJPRyF zr9Wd7BpWNk4x3yfua2SedmBUR8Gde4ccTVxD8LrMAsy5w7Yw2OsY7j43SJ/XPACo3W9 7OCKuCWXxYayo/9ot2FAYL13m16OQ7Kg4ngRprfE9eKkyjJ1Oc5yh0XCGn0dpPTT1UiQ rvfbIUDX13m+O4v6SdPyhS++rTRPIBXnKBnihZgnZ5iDXiAB16aTNlGRrd7zt2H6b/ct X/RA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ca9mDhOn; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g9si7939554plq.376.2019.06.30.06.55.07; Sun, 30 Jun 2019 06:55:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=ca9mDhOn; spf=pass (google.com: best guess record for domain of linux-nfs-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726617AbfF3Ny4 (ORCPT + 99 others); Sun, 30 Jun 2019 09:54:56 -0400 Received: from mail-io1-f65.google.com ([209.85.166.65]:35108 "EHLO mail-io1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726578AbfF3Nyz (ORCPT ); Sun, 30 Jun 2019 09:54:55 -0400 Received: by mail-io1-f65.google.com with SMTP id m24so22777412ioo.2; Sun, 30 Jun 2019 06:54:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=0lUkdpLwnsPV2033Gelot7S3NczTnw9f1lWg30kTGWo=; b=ca9mDhOnXlgaCdc1K3+hB0JNFEsZRVz+E1NbCNTsvyHHUf7vA/YLvMPFT+y0SLXwAJ Fohf8dd0Lu2/2GGhOTOs1cSc6lAG2duO0QZf1iTgXIlXU/T/QTuwdpblOtHzB3oXMvdt qWyh99CWIog1LuBAuhd9ZX52y+BGgSk/JapvnqKo/GUSyyOEUrER8XreJLMMc+gaJMDR Ynm/LoclspqzfTPuG3wPjRaO1i+5LK1L9zn0CAK6ZmpIpc1Jw8z7XKnaJfSBYbsWh//o a9X7RQQkWHyHEEOcRvGM+jCaI73iKtn+bDOOdJeLar2RgwALr6mmudSaC3Pwv0HU6HKs DR7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=0lUkdpLwnsPV2033Gelot7S3NczTnw9f1lWg30kTGWo=; b=uZ7m2AuZKOZ6BwvApZYF0/b2g1/KyjT3JPeWZZrm9Znw8bH27Po5WXV2m/8Pfi7b1c bPY14F2bYMlzSV/ncZ2Nd/60Hen34JyKKfcrSAVakklADD0QrZxz7HiVBR+61LnQCXKQ la4A4iOQcEc4ffK7BFNdV+ulSwBkJdC84biXLuY7nvU+tuSc9Ol61OD5jiG/CAKsFFKW J806O16RK1DNaGP7olDlS+7MBuZeDHzuRLy/HODglP5DpJPgE5m0MYhG1HwR/0xhP0lI yYer9EWRxgtizLqOeFHe8cI/a4/CZmhxHhTDLOkePUM+rc08k1HsgGI33rOzXTZXUbXN CU0g== X-Gm-Message-State: APjAAAVWN/MTd/posWt6QGu+eOfCPgl8npP+H4wdmSHwQ4/ak3J0k5mm xiYNCCJxajhSeILLL6QL9A== X-Received: by 2002:a5d:94d7:: with SMTP id y23mr19362623ior.296.1561902894928; Sun, 30 Jun 2019 06:54:54 -0700 (PDT) Received: from localhost.localdomain (50-124-245-189.alma.mi.frontiernet.net. [50.124.245.189]) by smtp.gmail.com with ESMTPSA id z17sm11930378iol.73.2019.06.30.06.54.53 (version=TLS1_3 cipher=AEAD-AES256-GCM-SHA384 bits=256/256); Sun, 30 Jun 2019 06:54:54 -0700 (PDT) From: Trond Myklebust X-Google-Original-From: Trond Myklebust To: "J. Bruce Fields" , Chuck Lever Cc: Jeff Layton , linux-nfs@vger.kernel.org, linux-fsdevel@vger.kernel.org Subject: [PATCH 04/16] vfs: Export flush_delayed_fput for use by knfsd. Date: Sun, 30 Jun 2019 09:52:28 -0400 Message-Id: <20190630135240.7490-5-trond.myklebust@hammerspace.com> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190630135240.7490-4-trond.myklebust@hammerspace.com> References: <20190630135240.7490-1-trond.myklebust@hammerspace.com> <20190630135240.7490-2-trond.myklebust@hammerspace.com> <20190630135240.7490-3-trond.myklebust@hammerspace.com> <20190630135240.7490-4-trond.myklebust@hammerspace.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org From: Trond Myklebust Allow knfsd to flush the delayed fput list so that it can ensure the cached struct file is closed before it is unlinked. Signed-off-by: Trond Myklebust Signed-off-by: Trond Myklebust --- fs/file_table.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fs/file_table.c b/fs/file_table.c index b07b53f24ff5..30d55c9a1744 100644 --- a/fs/file_table.c +++ b/fs/file_table.c @@ -327,6 +327,7 @@ void flush_delayed_fput(void) { delayed_fput(NULL); } +EXPORT_SYMBOL_GPL(flush_delayed_fput); static DECLARE_DELAYED_WORK(delayed_fput_work, delayed_fput); -- 2.21.0