lkml.org 
[lkml]   [2016]   [Aug]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 58/80] staging: lustre: mdc: always use D_INFO for debug info when mdc_put_rpc_lock fails
    Date
    From: wang di <di.wang@intel.com>

    Also use D_INFO no matter what the error returned from
    mdc_put_rpc_lock.

    Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
    Signed-off-by: wang di <di.wang@intel.com>
    Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4973
    Reviewed-on: http://review.whamcloud.com/10150
    Reviewed-by: Mike Pershin <mike.pershin@intel.com>
    Signed-off-by: James Simmons <jsimmons@infradead.org>
    ---
    drivers/staging/lustre/lustre/mdc/mdc_locks.c | 5 ++---
    1 files changed, 2 insertions(+), 3 deletions(-)

    diff --git a/drivers/staging/lustre/lustre/mdc/mdc_locks.c b/drivers/staging/lustre/lustre/mdc/mdc_locks.c
    index 551f3d9..3291201 100644
    --- a/drivers/staging/lustre/lustre/mdc/mdc_locks.c
    +++ b/drivers/staging/lustre/lustre/mdc/mdc_locks.c
    @@ -841,9 +841,8 @@ resend:
    mdc_put_rpc_lock(obddev->u.cli.cl_rpc_lock, it);

    if (rc < 0) {
    - CDEBUG_LIMIT((rc == -EACCES || rc == -EIDRM) ? D_INFO : D_ERROR,
    - "%s: ldlm_cli_enqueue failed: rc = %d\n",
    - obddev->obd_name, rc);
    + CDEBUG(D_INFO, "%s: ldlm_cli_enqueue failed: rc = %d\n",
    + obddev->obd_name, rc);

    mdc_clear_replay_flag(req, rc);
    ptlrpc_req_finished(req);
    --
    1.7.1
    \
     
     \ /
      Last update: 2016-09-17 09:57    [W:4.024 / U:0.308 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site