From patchwork Mon Nov 26 09:30:14 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benny Halevy X-Patchwork-Id: 1801251 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 0C318DF2F9 for ; Mon, 26 Nov 2012 09:30:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754079Ab2KZJaT (ORCPT ); Mon, 26 Nov 2012 04:30:19 -0500 Received: from mail-ee0-f46.google.com ([74.125.83.46]:65420 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753975Ab2KZJaS (ORCPT ); Mon, 26 Nov 2012 04:30:18 -0500 Received: by mail-ee0-f46.google.com with SMTP id e53so4338389eek.19 for ; Mon, 26 Nov 2012 01:30:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:from:to:cc:subject:date:message-id:x-mailer; bh=w1p81iXTrWWvyekhohV9GEQeYLosjUwYxsRkykmnCPQ=; b=mRUKAlDKL6kyhmJAWUbyi9PUL7A5OK0rI8MXu6/XAaQRQXPpGnd1jbDaA6JtYDR27P yp3WNIAfqGQRjxcSEs7cBjI25UEq2KePDoBljzuVxh7ygdg01s7LbiCsIXR7h951FZ2q feBoCigsIlI03k5DOL8fct15xkFV5fDlfvH8f1+UghZrR+2mjtnBWKo0tQUY7WzJMIlj iXPyiWH/AdFkGD96oioMgCGMobtqtM5Lddr8ymA2qa9pnBpH/5Es1j+WlIHp3OGvL/jB cwrmj+j00/NrFz0XmKN78PYj2FvP4uXNAjwTyt3O7QzkQyLGHBnFtMlZnFLfp/bx3/b3 5RHA== Received: by 10.14.225.72 with SMTP id y48mr39823285eep.46.1353922217332; Mon, 26 Nov 2012 01:30:17 -0800 (PST) Received: from bhalevy-lt.il.tonian.com ([46.120.7.251]) by mx.google.com with ESMTPS id a45sm32484919eep.16.2012.11.26.01.30.15 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 26 Nov 2012 01:30:16 -0800 (PST) From: Benny Halevy To: Trond Myklebust Cc: linux-nfs@vger.kernel.org Subject: [PATCH] pnfs: improve debug prints in filelayout_set_layoutcommit Date: Mon, 26 Nov 2012 11:30:14 +0200 Message-Id: <1353922214-27796-1-git-send-email-bhalevy@tonian.com> X-Mailer: git-send-email 1.7.11.7 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org Signed-off-by: Benny Halevy --- fs/nfs/nfs4filelayout.c | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/fs/nfs/nfs4filelayout.c b/fs/nfs/nfs4filelayout.c index 2e45fd9..5b5ce82 100644 --- a/fs/nfs/nfs4filelayout.c +++ b/fs/nfs/nfs4filelayout.c @@ -266,11 +266,16 @@ static int filelayout_read_done_cb(struct rpc_task *task, struct nfs_pgio_header *hdr = wdata->header; if (FILELAYOUT_LSEG(hdr->lseg)->commit_through_mds || - wdata->res.verf->committed == NFS_FILE_SYNC) + wdata->res.verf->committed == NFS_FILE_SYNC) { + dprintk("%s inode %lu commit_through_mds %d committed %d\n", + __func__, hdr->inode->i_ino, + FILELAYOUT_LSEG(hdr->lseg)->commit_through_mds != 0, + wdata->res.verf->committed == NFS_FILE_SYNC); return; + } pnfs_set_layoutcommit(wdata); - dprintk("%s ionde %lu pls_end_pos %lu\n", __func__, hdr->inode->i_ino, + dprintk("%s inode %lu pls_end_pos %lu\n", __func__, hdr->inode->i_ino, (unsigned long) NFS_I(hdr->inode)->layout->plh_lwb); }