From patchwork Fri Nov 6 21:43:08 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Mkrtchyan, Tigran" X-Patchwork-Id: 7573611 Return-Path: X-Original-To: patchwork-linux-nfs@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 4616FC05C6 for ; Fri, 6 Nov 2015 21:52:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 7AD4F206F9 for ; Fri, 6 Nov 2015 21:52:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0E91520722 for ; Fri, 6 Nov 2015 21:52:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S966160AbbKFVwN (ORCPT ); Fri, 6 Nov 2015 16:52:13 -0500 Received: from smtp-o-3.desy.de ([131.169.56.156]:46502 "EHLO smtp-o-3.desy.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965640AbbKFVvt (ORCPT ); Fri, 6 Nov 2015 16:51:49 -0500 X-Greylist: delayed 515 seconds by postgrey-1.27 at vger.kernel.org; Fri, 06 Nov 2015 16:51:49 EST X-Clacks-Overhead: GNU Terry Pratchett Received: from smtp-map-3.desy.de (smtp-map-3.desy.de [131.169.56.68]) by smtp-o-3.desy.de (DESY-O-3) with ESMTP id 2829128023D for ; Fri, 6 Nov 2015 22:43:13 +0100 (CET) Received: from ZITSWEEP2.win.desy.de (zitsweep2.win.desy.de [131.169.97.96]) by smtp-map-3.desy.de (DESY_MAP_3) with ESMTP id 1BB1214B1 for ; Fri, 6 Nov 2015 22:43:11 +0100 (MET) Received: from smtp-intra-1.desy.de (lb-40-26.desy.de) by ZITSWEEP2.win.desy.de (Clearswift SMTPRS 5.5.0) with ESMTP id for ; Fri, 6 Nov 2015 22:43:11 +0100 Received: from anahit.desy.de (anahit.desy.de [131.169.185.68]) by smtp-intra-1.desy.de (DESY-INTRA-1) with ESMTP id ADD763E901; Fri, 6 Nov 2015 22:43:11 +0100 (MET) From: Tigran Mkrtchyan To: linux-nfs@vger.kernel.org Cc: Tigran Mkrtchyan Subject: [PATCH] nfs: bump printk level to log pnfs errors Date: Fri, 6 Nov 2015 22:43:08 +0100 Message-Id: <1446846188-13944-1-git-send-email-tigran.mkrtchyan@desy.de> X-Mailer: git-send-email 2.5.0 Sender: linux-nfs-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- 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: