]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rds: Fix inaccurate accounting of unsignaled wrs in rds_ib_xmit_rdma
authorHåkon Bugge <Haakon.Bugge@oracle.com>
Fri, 10 Nov 2017 11:42:18 +0000 (12:42 +0100)
committerDhaval Giani <dhaval.giani@oracle.com>
Wed, 15 Nov 2017 06:10:06 +0000 (01:10 -0500)
commit68463e646e914cea1aeafc38fdd5673a442674fd
tree170dccdf382e353ccd328ff067b9cb4b68462626
parent61ae7cb38cab794139ead9eff9475d80d90a0384
rds: Fix inaccurate accounting of unsignaled wrs in rds_ib_xmit_rdma

The number of unsignaled work-requests posted to the IB send queue is
tracked by a counter in the rds_ib_connection struct. When it reaches
zero, or the caller explicitly asks for it, the send-signaled bit is
set in send_flags and the counter is reset. This is performed by the
rds_ib_set_wr_signal_state() function.

However, this function is not used in rds_ib_xmit_rdma(), which yields
inaccurate accounting. This commit fixes this.

Orabug: 27090772

Signed-off-by: Håkon Bugge <haakon.bugge@oracle.com>
Reviewed-by: Knut Omang <knut.omang@oracle.com>
Reviewed-by: Wei Lin Guay <wei.lin.guay@oracle.com>
Reviewed-by: Avinash Repaka <avinash.repaka@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
net/rds/ib_send.c