From patchwork Wed May 11 00:54:05 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andy Adamson X-Patchwork-Id: 776362 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.3) with ESMTP id p4BFu2gv007806 for ; Wed, 11 May 2011 15:56:03 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753942Ab1EKPzD (ORCPT ); Wed, 11 May 2011 11:55:03 -0400 Received: from mx2.netapp.com ([216.240.18.37]:12039 "EHLO mx2.netapp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752968Ab1EKPzB (ORCPT ); Wed, 11 May 2011 11:55:01 -0400 X-IronPort-AV: E=Sophos;i="4.64,353,1301900400"; d="scan'208";a="547127230" Received: from smtp1.corp.netapp.com ([10.57.156.124]) by mx2-out.netapp.com with ESMTP; 11 May 2011 06:47:20 -0700 Received: from localhost.localdomain (alok2-lxp.hq.netapp.com [10.58.61.120] (may be forged)) by smtp1.corp.netapp.com (8.13.1/8.13.1/NTAP-1.6) with ESMTP id p4BDlJ7W004930; Wed, 11 May 2011 06:47:19 -0700 (PDT) From: andros@netapp.com To: trond.myklebust@netapp.com Cc: linux-nfs@vger.kernel.org, Andy Adamson Subject: [PATCH 1/1] NFSv4.1: remove pnfs_layout_hdr from pnfs_destroy_all_layouts tmp_list Date: Tue, 10 May 2011 20:54:05 -0400 Message-Id: <1305075245-27123-1-git-send-email-andros@netapp.com> X-Mailer: git-send-email 1.6.6 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Wed, 11 May 2011 15:56:03 +0000 (UTC) From: Andy Adamson Prevents an infinite loop as list was never emptied. Signed-off-by: Andy Adamson --- fs/nfs/pnfs.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/fs/nfs/pnfs.c b/fs/nfs/pnfs.c index ff681ab..7626369 100644 --- a/fs/nfs/pnfs.c +++ b/fs/nfs/pnfs.c @@ -383,6 +383,7 @@ pnfs_destroy_all_layouts(struct nfs_client *clp) plh_layouts); dprintk("%s freeing layout for inode %lu\n", __func__, lo->plh_inode->i_ino); + list_del(&lo->plh_layouts); pnfs_destroy_layout(NFS_I(lo->plh_inode)); } }