]> Git Repo - linux.git/commit - net/rds/ib_send.c
rds: Fix inaccurate accounting of unsignaled wrs
authorHåkon Bugge <[email protected]>
Tue, 24 Oct 2017 14:16:28 +0000 (16:16 +0200)
committerDavid S. Miller <[email protected]>
Thu, 26 Oct 2017 08:35:57 +0000 (17:35 +0900)
commita0c0865fa0abcbc142c11fabec3a2bffc1a4229d
treec48c024b1e3e49dfc0866a1299e73d2bb5ab8327
parente9a0b99804ff662d02b78a556a84e22308066fe1
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.

Signed-off-by: Håkon Bugge <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
net/rds/ib_send.c
This page took 0.05975 seconds and 4 git commands to generate.