mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-12 16:58:53 +00:00
SUNRPC: Handle ENETDOWN errors
Signed-off-by: Trond Myklebust <trond.myklebust@primarydata.com> Signed-off-by: Anna Schumaker <Anna.Schumaker@Netapp.com>
This commit is contained in:
parent
4ba161a793
commit
eb5b46faa6
@ -1841,6 +1841,7 @@ call_bind_status(struct rpc_task *task)
|
|||||||
case -ECONNABORTED:
|
case -ECONNABORTED:
|
||||||
case -ENOTCONN:
|
case -ENOTCONN:
|
||||||
case -EHOSTDOWN:
|
case -EHOSTDOWN:
|
||||||
|
case -ENETDOWN:
|
||||||
case -EHOSTUNREACH:
|
case -EHOSTUNREACH:
|
||||||
case -ENETUNREACH:
|
case -ENETUNREACH:
|
||||||
case -ENOBUFS:
|
case -ENOBUFS:
|
||||||
@ -1917,6 +1918,7 @@ call_connect_status(struct rpc_task *task)
|
|||||||
/* fall through */
|
/* fall through */
|
||||||
case -ECONNRESET:
|
case -ECONNRESET:
|
||||||
case -ECONNABORTED:
|
case -ECONNABORTED:
|
||||||
|
case -ENETDOWN:
|
||||||
case -ENETUNREACH:
|
case -ENETUNREACH:
|
||||||
case -EHOSTUNREACH:
|
case -EHOSTUNREACH:
|
||||||
case -EADDRINUSE:
|
case -EADDRINUSE:
|
||||||
@ -2022,6 +2024,7 @@ call_transmit_status(struct rpc_task *task)
|
|||||||
*/
|
*/
|
||||||
case -ECONNREFUSED:
|
case -ECONNREFUSED:
|
||||||
case -EHOSTDOWN:
|
case -EHOSTDOWN:
|
||||||
|
case -ENETDOWN:
|
||||||
case -EHOSTUNREACH:
|
case -EHOSTUNREACH:
|
||||||
case -ENETUNREACH:
|
case -ENETUNREACH:
|
||||||
case -EPERM:
|
case -EPERM:
|
||||||
@ -2071,6 +2074,7 @@ call_bc_transmit(struct rpc_task *task)
|
|||||||
switch (task->tk_status) {
|
switch (task->tk_status) {
|
||||||
case 0:
|
case 0:
|
||||||
/* Success */
|
/* Success */
|
||||||
|
case -ENETDOWN:
|
||||||
case -EHOSTDOWN:
|
case -EHOSTDOWN:
|
||||||
case -EHOSTUNREACH:
|
case -EHOSTUNREACH:
|
||||||
case -ENETUNREACH:
|
case -ENETUNREACH:
|
||||||
@ -2139,6 +2143,7 @@ call_status(struct rpc_task *task)
|
|||||||
task->tk_status = 0;
|
task->tk_status = 0;
|
||||||
switch(status) {
|
switch(status) {
|
||||||
case -EHOSTDOWN:
|
case -EHOSTDOWN:
|
||||||
|
case -ENETDOWN:
|
||||||
case -EHOSTUNREACH:
|
case -EHOSTUNREACH:
|
||||||
case -ENETUNREACH:
|
case -ENETUNREACH:
|
||||||
case -EPERM:
|
case -EPERM:
|
||||||
|
@ -2439,6 +2439,7 @@ static void xs_tcp_setup_socket(struct work_struct *work)
|
|||||||
*/
|
*/
|
||||||
case -ECONNREFUSED:
|
case -ECONNREFUSED:
|
||||||
case -ECONNRESET:
|
case -ECONNRESET:
|
||||||
|
case -ENETDOWN:
|
||||||
case -ENETUNREACH:
|
case -ENETUNREACH:
|
||||||
case -EHOSTUNREACH:
|
case -EHOSTUNREACH:
|
||||||
case -EADDRINUSE:
|
case -EADDRINUSE:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user