]> git.baikalelectronics.ru Git - kernel.git/commit
rds: avoid version downgrade to legitimate newer peer connections
authorSantosh Shilimkar <santosh.shilimkar@oracle.com>
Fri, 28 Jun 2019 22:38:58 +0000 (15:38 -0700)
committerSantosh Shilimkar <santosh.shilimkar@oracle.com>
Wed, 10 Jul 2019 04:45:43 +0000 (21:45 -0700)
commit2c521324836071586dbbb04ffe23fdbecf0ebff3
tree8c6bf605d051e5c8be774b5bf4b140b4d3d1a77c
parent00b84fb203c3b2b117f3204a9a804d6f2396d8c2
rds: avoid version downgrade to legitimate newer peer connections

Connections with legitimate tos values can get into usual connection
race. It can result in consumer reject. We don't want tos value or
protocol version to be demoted for such connections otherwise
piers would end up different tos values which can results in
no connection. Example a peer initiated connection with say
tos 8 while usual connection racing can get downgraded to tos 0
which is not desirable.

Patch fixes above issue introduced by commit
commit 26ea443116e7 ("rds: rdma: add consumer reject")

Reported-by: Yanjun Zhu <yanjun.zhu@oracle.com>
Tested-by: Yanjun Zhu <yanjun.zhu@oracle.com>
Signed-off-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
net/rds/rdma_transport.c