Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 92b98361 authored by Chuck Lever's avatar Chuck Lever Committed by Anna Schumaker
Browse files

xprtrdma: Return an errno from rpcrdma_register_external()



The RPC/RDMA send_request method and the chunk registration code
expects an errno from the registration function. This allows
the upper layers to distinguish between a recoverable failure
(for example, temporary memory exhaustion) and a hard failure
(for example, a bug in the registration logic).

Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
Signed-off-by: default avatarAnna Schumaker <Anna.Schumaker@Netapp.com>
parent 5d01410f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1918,10 +1918,10 @@ rpcrdma_register_external(struct rpcrdma_mr_seg *seg,
		break;

	default:
		return -1;
		return -EIO;
	}
	if (rc)
		return -1;
		return rc;

	return nsegs;
}