diff mbox

nfs: bump printk level to log pnfs errors

Message ID 1446846188-13944-1-git-send-email-tigran.mkrtchyan@desy.de (mailing list archive)
State New, archived
Headers show

Commit Message

Mkrtchyan, Tigran Nov. 6, 2015, 9:43 p.m. UTC
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 mbox

Patch

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: