rds: RDS (tcp) hangs on sendto() to unresponding address
authorKa-Cheong Poon <ka-cheong.poon@oracle.com>
Mon, 8 Oct 2018 16:17:11 +0000 (09:17 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Nov 2018 13:51:50 +0000 (14:51 +0100)
commit941a8d0b8409c2c3fa8914f43bb5eaaae97d73af
tree0705d43e4d80c553643ef97e1a23954f5c2a6237
parent87113db1242c7a26fb93e5c5a9ec6d69ac177c4d
rds: RDS (tcp) hangs on sendto() to unresponding address

[ Upstream commit 9a4890bd6d6325a1c88564a20ab310b2d56f6094 ]

In rds_send_mprds_hash(), if the calculated hash value is non-zero and
the MPRDS connections are not yet up, it will wait.  But it should not
wait if the send is non-blocking.  In this case, it should just use the
base c_path for sending the message.

Signed-off-by: Ka-Cheong Poon <ka-cheong.poon@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/rds/send.c