Return-Path: Received: from mail-ob0-f180.google.com ([209.85.214.180]:34632 "EHLO mail-ob0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752450AbbIWMFP (ORCPT ); Wed, 23 Sep 2015 08:05:15 -0400 Received: by obbda8 with SMTP id da8so31115809obb.1 for ; Wed, 23 Sep 2015 05:05:14 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <56026273.8040707@gmail.com> References: <1442892922-10834-1-git-send-email-tao.peng@primarydata.com> <56025A7D.2060207@gmail.com> <56025AE6.6020808@gmail.com> <56026273.8040707@gmail.com> Date: Wed, 23 Sep 2015 08:05:14 -0400 Message-ID: Subject: Re: [PATCH v2] NFS41: make close wait for layoutreturn From: Trond Myklebust To: Kinglong Mee Cc: Peng Tao , Linux NFS Mailing List Content-Type: text/plain; charset=UTF-8 Sender: linux-nfs-owner@vger.kernel.org List-ID: On Wed, Sep 23, 2015 at 4:27 AM, Kinglong Mee wrote: > I find the inode returned from nfs_igrab_and_active is NULL > in _nfs4_proc_delegreturn(), > > data->inode = nfs_igrab_and_active(inode); > > So that, NFS_I(inode) causes the panic. I've added a check for ino == NULL to nfs4_wait_on_layoutreturn()... Cheers Trond