lkml.org 
[lkml]   [2016]   [Oct]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 08/41] staging: lustre: ptlrpc: ret -ECONNREFUSED if not context found in req
    Date
    From: Sebastien Buisson <sebastien.buisson@bull.net>

    Return -ECONNREFUSED instead of -ENOMEM in sptlrpc_req_get_ctx()
    if no context is found in req. It is more graceful.

    Signed-off-by: Sebastien Buisson <sebastien.buisson@bull.net>
    Intel-bug-id: https://jira.hpdd.intel.com/browse/LU-6356
    Reviewed-on: http://review.whamcloud.com/14043
    Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
    Reviewed-by: Andrew Perepechko <andrew.perepechko@seagate.com>
    Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
    Signed-off-by: James Simmons <jsimmons@infradead.org>
    ---
    drivers/staging/lustre/lustre/ptlrpc/sec.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/drivers/staging/lustre/lustre/ptlrpc/sec.c b/drivers/staging/lustre/lustre/ptlrpc/sec.c
    index 5d3995d..1457a6e 100644
    --- a/drivers/staging/lustre/lustre/ptlrpc/sec.c
    +++ b/drivers/staging/lustre/lustre/ptlrpc/sec.c
    @@ -379,7 +379,7 @@ int sptlrpc_req_get_ctx(struct ptlrpc_request *req)

    if (!req->rq_cli_ctx) {
    CERROR("req %p: fail to get context\n", req);
    - return -ENOMEM;
    + return -ECONNREFUSED;
    }

    return 0;
    --
    1.7.1
    \
     
     \ /
      Last update: 2016-10-03 04:37    [W:4.249 / U:0.600 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site