From: wang di Date: Tue, 16 Aug 2016 20:19:11 +0000 (-0400) Subject: staging: lustre: mdc: always use D_INFO for debug info when mdc_put_rpc_lock fails X-Git-Tag: v4.9-rc1~119^2~1079 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=7aca4ae34c22c57f09d01695b956aac88ad3006c;p=karo-tx-linux.git staging: lustre: mdc: always use D_INFO for debug info when mdc_put_rpc_lock fails Also use D_INFO no matter what the error returned from mdc_put_rpc_lock. Signed-off-by: Andreas Dilger Signed-off-by: wang di Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-4973 Reviewed-on: http://review.whamcloud.com/10150 Reviewed-by: Mike Pershin Signed-off-by: James Simmons Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/lustre/lustre/mdc/mdc_locks.c b/drivers/staging/lustre/lustre/mdc/mdc_locks.c index 551f3d941c16..329120136a62 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);