staging: lustre: ptlrpc: ret -ECONNREFUSED if not context found in req
authorSebastien Buisson <sebastien.buisson@bull.net>
Mon, 3 Oct 2016 02:28:04 +0000 (22:28 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Oct 2016 08:24:25 +0000 (10:24 +0200)
commitbb0c9db9bee2ce86c66c51582a238cf76b8543d0
tree1b7f708ba05c672a3bdbf0fc536b791c10dbfe73
parentcbd4d4a8e319050100db4e05d896cee65f011d25
staging: lustre: ptlrpc: ret -ECONNREFUSED if not context found in req

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/lustre/lustre/ptlrpc/sec.c