RDS: RDMA: return appropriate error on rdma map failures
authorSantosh Shilimkar <santosh.shilimkar@oracle.com>
Tue, 5 Jul 2016 00:04:37 +0000 (17:04 -0700)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Mon, 2 Jan 2017 22:02:46 +0000 (14:02 -0800)
commit584a8279a44a800dea5a5c1e9d53a002e03016b4
tree14507c4da98fa2c0bc314bf50624f84720670bef
parent8d5d8a5fd7f9337b2eff689df14ff3ae617f3ae6
RDS: RDMA: return appropriate error on rdma map failures

The first message to a remote node should prompt a new
connection even if it is RDMA operation. For RDMA operation
the MR mapping can fail because connections is not yet up.

Since the connection establishment is asynchronous,
we make sure the map failure because of unavailable
connection reach to the user by appropriate error code.
Before returning to the user, lets trigger the connection
so that its ready for the next retry.

Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
net/rds/send.c