]> www.infradead.org Git - users/jedix/linux-maple.git/commit
rds: Fix inaccurate accounting of unsignaled wrs
authorHåkon Bugge <Haakon.Bugge@oracle.com>
Tue, 24 Oct 2017 14:16:28 +0000 (16:16 +0200)
committerDhaval Giani <dhaval.giani@oracle.com>
Wed, 15 Nov 2017 06:10:05 +0000 (01:10 -0500)
commit61ae7cb38cab794139ead9eff9475d80d90a0384
tree66de61ef12c491f00ff81c54b6a6f68715c402ce
parent6af77f7de5a6d47fefc3024a7a8a7f8e738d03b3
rds: Fix inaccurate accounting of unsignaled wrs

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 always used which yields inaccurate
accounting. This commit fixes this, re-factors a code bloat related to
the matter, and makes the actual parameter type to the function
consistent.

Orabug: 27090772

Signed-off-by: Håkon Bugge <haakon.bugge@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
(cherry-picked from upstream a0c0865fa0abcbc142c11fabec3a2bffc1a4229d)

Conflicts:
net/rds/ib_send.c

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>
--
changes from v1:
- Inclusion of upstream cherry-picked SHA

Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
net/rds/ib_send.c