Message ID | 20161201221922.15657-27-trond.myklebust@primarydata.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-nfs-owner@kernel.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 397AD60756 for <patchwork-linux-nfs@patchwork.kernel.org>; Thu, 1 Dec 2016 22:19:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2C3B828540 for <patchwork-linux-nfs@patchwork.kernel.org>; Thu, 1 Dec 2016 22:19:55 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2106E28542; Thu, 1 Dec 2016 22:19:55 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D7C9328541 for <patchwork-linux-nfs@patchwork.kernel.org>; Thu, 1 Dec 2016 22:19:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758269AbcLAWTx (ORCPT <rfc822;patchwork-linux-nfs@patchwork.kernel.org>); Thu, 1 Dec 2016 17:19:53 -0500 Received: from mail-io0-f196.google.com ([209.85.223.196]:34725 "EHLO mail-io0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1760035AbcLAWTs (ORCPT <rfc822;linux-nfs@vger.kernel.org>); Thu, 1 Dec 2016 17:19:48 -0500 Received: by mail-io0-f196.google.com with SMTP id r94so3918290ioe.1 for <linux-nfs@vger.kernel.org>; Thu, 01 Dec 2016 14:19:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:subject:date:message-id:in-reply-to:references; bh=ANuv1E95ZuNUmlzXuX+e6LRNbzmnPQXB6dTMS8ZvNPI=; b=HfT8ozu0hWh8IwO8lOlQ00wMRVpRIhhyUT69W0yiIdLznBH5wxyWSWXxf8BeLidFSP B0UTK8UrIbB77e5aIALEd+b0GxdasoVeaH0HGXDcFG2Hj+oUXbuwECz2lKxTKNyW+xTN ENE040QTYIp+bkiH+0x61mbeklOIjRSJ2El/u0H1o17YhBzQXnKrpp2iZ+sshwpEz+G4 49xiJrUMCLm8cycE+CEb8uVMsUkoqoVF4LPuhozIptX070hDi2IWHc6OBabSJKae6dsq YvXeBBC7hkBEzsKvgMD0A8KwYfc5E4o2ifaax9PvtzbveqZV3QCdBndr+6Ez/+VcTr4y S3GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:from:to:subject:date:message-id :in-reply-to:references; bh=ANuv1E95ZuNUmlzXuX+e6LRNbzmnPQXB6dTMS8ZvNPI=; b=RLgATk4sa5QW+l0adBZELe2ovP4LdUSEWbwBg1XCBMF6BFVGytZrI6B0ysLNZ+dhdj HzXAO1VHjr6esraFa7yNvuSUxiAef9dAOV3qTwA/+tsJkFFuKW8fJxYvvKKYxA4zLWFv 93E9UY5pLONLwq5CK9WdaCLvK02AXjMqftd7J7lOPPidFlcTExltkQxu3v0Tw/bOk/rR RH9pmTZGlwD5MI20w+6lmUqDi+QRDuhvhrH9GC2S3ixA5ttCq0Lw6iAYnKF/h1wtyzor Bc9BFS9ZeSLxFGX2qXDU66YqKOt3k5eiZbMnJqL5auTVm12Dh9cCqrycv6vs0THa1NBF Pa6g== X-Gm-Message-State: AKaTC03vGqGWl2BypYANiXkhhmegKxnvmaRegkToL2wBtnhDnwgdj9FzTIkzjOBYTOZK7A== X-Received: by 10.36.159.193 with SMTP id c184mr42824ite.72.1480630787881; Thu, 01 Dec 2016 14:19:47 -0800 (PST) Received: from leira.trondhjem.org.localdomain (c-68-49-162-121.hsd1.mi.comcast.net. [68.49.162.121]) by smtp.gmail.com with ESMTPSA id t20sm6532ita.7.2016.12.01.14.19.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 01 Dec 2016 14:19:47 -0800 (PST) From: Trond Myklebust <trond.myklebust@primarydata.com> To: linux-nfs@vger.kernel.org Subject: [PATCH 26/26] pNFS: Skip invalid stateids when doing a bulk destroy Date: Thu, 1 Dec 2016 17:19:22 -0500 Message-Id: <20161201221922.15657-27-trond.myklebust@primarydata.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20161201221922.15657-26-trond.myklebust@primarydata.com> References: <20161201221922.15657-1-trond.myklebust@primarydata.com> <20161201221922.15657-2-trond.myklebust@primarydata.com> <20161201221922.15657-3-trond.myklebust@primarydata.com> <20161201221922.15657-4-trond.myklebust@primarydata.com> <20161201221922.15657-5-trond.myklebust@primarydata.com> <20161201221922.15657-6-trond.myklebust@primarydata.com> <20161201221922.15657-7-trond.myklebust@primarydata.com> <20161201221922.15657-8-trond.myklebust@primarydata.com> <20161201221922.15657-9-trond.myklebust@primarydata.com> <20161201221922.15657-10-trond.myklebust@primarydata.com> <20161201221922.15657-11-trond.myklebust@primarydata.com> <20161201221922.15657-12-trond.myklebust@primarydata.com> <20161201221922.15657-13-trond.myklebust@primarydata.com> <20161201221922.15657-14-trond.myklebust@primarydata.com> <20161201221922.15657-15-trond.myklebust@primarydata.com> <20161201221922.15657-16-trond.myklebust@primarydata.com> <20161201221922.15657-17-trond.myklebust@primarydata.com> <20161201221922.15657-18-trond.myklebust@primarydata.com> <20161201221922.15657-19-trond.myklebust@primarydata.com> <20161201221922.15657-20-trond.myklebust@primarydata.com> <20161201221922.15657-21-trond.myklebust@primarydata.com> <20161201221922.15657-22-trond.myklebust@primarydata.com> <20161201221922.15657-23-trond.myklebust@primarydata.com> <20161201221922.15657-24-trond.myklebust@primarydata.com> <20161201221922.15657-25-trond.myklebust@primarydata.com> <20161201221922.15657-26-trond.myklebust@primarydata.com> Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: <linux-nfs.vger.kernel.org> X-Mailing-List: linux-nfs@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c index 550010826bdd..0b25a1c820ba 100644 --- a/fs/nfs/pnfs.c +++ b/fs/nfs/pnfs.c @@ -750,6 +750,8 @@ pnfs_layout_bulk_destroy_byserver_locked(struct nfs_client *clp, struct inode *inode; list_for_each_entry_safe(lo, next, &server->layouts, plh_layouts) { + if (test_bit(NFS_LAYOUT_INVALID_STID, &lo->plh_flags)) + continue; inode = igrab(lo->plh_inode); if (inode == NULL) continue;
If the layout stateid is already invalid, we have no work to do. Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com> --- fs/nfs/pnfs.c | 2 ++ 1 file changed, 2 insertions(+)