Skip to content

Commit 5631f1a

Browse files
Wei Lin GuaySantoshShilimkar
authored andcommitted
RDS: Fix out-of-order RDS_CMSG_RDMA_SEND_STATUS
Orabug: 22126982 If the RDS user application requests notification of RDMA send completions, there is a possibility that RDS_CMSG_RDMA_SEND_STATUS will be delivered out-of-order. This can happen if RDS drops sending ACK after it received an explicit ACK. In this case, the rds message ended up in reverse order in the list. Reviewed-by: Håkon Bugge <[email protected]> Reviewed-by: Knut Omang <[email protected]> Reviewed-by: Santosh Shilimkar <[email protected]> Reviewed-by: Ajaykumar Hotchandani <[email protected]> Signed-off-by: Wei Lin Guay <[email protected]>
1 parent 1b0d55d commit 5631f1a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/rds/send.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -846,7 +846,7 @@ void rds_send_drop_acked(struct rds_connection *conn, u64 ack,
846846
if (!rds_send_is_acked(rm, ack, is_acked))
847847
break;
848848

849-
list_move(&rm->m_conn_item, &list);
849+
list_move_tail(&rm->m_conn_item, &list);
850850
clear_bit(RDS_MSG_ON_CONN, &rm->m_flags);
851851
}
852852

0 commit comments

Comments
 (0)