From patchwork Mon Feb 21 22:31:08 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benny Halevy X-Patchwork-Id: 578651 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p1LMVLVk023722 for ; Mon, 21 Feb 2011 22:31:21 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752614Ab1BUWbN (ORCPT ); Mon, 21 Feb 2011 17:31:13 -0500 Received: from daytona.panasas.com ([67.152.220.89]:47247 "EHLO daytona.panasas.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752600Ab1BUWbN (ORCPT ); Mon, 21 Feb 2011 17:31:13 -0500 Received: from lt.bhalevy.com.com ([172.17.33.184]) by daytona.panasas.com with Microsoft SMTPSVC(6.0.3790.4675); Mon, 21 Feb 2011 17:31:12 -0500 From: Benny Halevy To: linux-nfs@vger.kernel.org Cc: Benny Halevy Subject: [PATCH 9/9] pnfs: improve nfs4_layoutget_done debug printouts Date: Mon, 21 Feb 2011 14:31:08 -0800 Message-Id: <1298327468-9612-1-git-send-email-bhalevy@panasas.com> X-Mailer: git-send-email 1.7.3.4 In-Reply-To: <4D62E6F3.8000304@panasas.com> References: <4D62E6F3.8000304@panasas.com> X-OriginalArrivalTime: 21 Feb 2011 22:31:12.0432 (UTC) FILETIME=[0B356300:01CBD217] 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 (demeter1.kernel.org [140.211.167.41]); Mon, 21 Feb 2011 22:31:21 +0000 (UTC) diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 10d46c4..785c460 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -5446,7 +5446,7 @@ static void nfs4_layoutget_done(struct rpc_task *task, void *calldata) struct nfs4_layoutget *lgp = calldata; struct nfs_server *server = NFS_SERVER(lgp->args.inode); - dprintk("--> %s\n", __func__); + dprintk("--> %s: tk_status=%d\n", __func__, task->tk_status); if (!nfs4_sequence_done(task, &lgp->res.seq_res)) { /* layout code relies on fact that in this case @@ -5467,6 +5467,7 @@ static void nfs4_layoutget_done(struct rpc_task *task, void *calldata) if (nfs4_async_handle_error(task, server, NULL, NULL) == -EAGAIN) { struct inode *ino = lgp->args.inode; + dprintk("<-- %s retrying\n", __func__); spin_lock(&ino->i_lock); atomic_dec(&NFS_I(ino)->layout->plh_outstanding); spin_unlock(&ino->i_lock);