All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
To: linux-nfs@vger.kernel.org
Cc: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Subject: [PATCH] nfs: bump printk level to log pnfs errors
Date: Fri,  6 Nov 2015 22:43:08 +0100	[thread overview]
Message-ID: <1446846188-13944-1-git-send-email-tigran.mkrtchyan@desy.de> (raw)

log as INFO level why pnfs client falled back to IO
through MDS.

example:

    NFS: filelayout_async_handle_error: Retry through MDS. DS [2001:638:700:10bf::1:8d]:32049 error -5

Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
---
 fs/nfs/filelayout/filelayout.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/fs/nfs/filelayout/filelayout.c b/fs/nfs/filelayout/filelayout.c
index 02ec079..0838b62 100644
--- a/fs/nfs/filelayout/filelayout.c
+++ b/fs/nfs/filelayout/filelayout.c
@@ -206,8 +206,8 @@ static int filelayout_async_handle_error(struct rpc_task *task,
 		/* fall through */
 	default:
 reset:
-		dprintk("%s Retry through MDS. Error %d\n", __func__,
-			task->tk_status);
+		printk(KERN_INFO "NFS: %s: Retry through MDS. DS %pISpc error %d\n", __func__,
+			&task->tk_client->cl_xprt->addr, task->tk_status);
 		return -NFS4ERR_RESET_TO_MDS;
 	}
 out:
-- 
2.5.0


                 reply	other threads:[~2015-11-06 21:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1446846188-13944-1-git-send-email-tigran.mkrtchyan@desy.de \
    --to=tigran.mkrtchyan@desy.de \
    --cc=linux-nfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.