]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sdp: Fix data corretness regression test failure.
authorJim Mott <jim@mellanox.com>
Sun, 11 Nov 2007 17:20:02 +0000 (19:20 +0200)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 6 Oct 2015 12:04:11 +0000 (05:04 -0700)
commit792ef74f5c3463df75ce7fc600479aad5a388163
tree461c3bd6125ac023a8bb7e38ad35de0e2a005e1b
parent6c52b57f5ec1d510b89231ebc55acbe010957967
sdp: Fix data corretness regression test failure.

Mellanox regression testing for data correctness started failing
after the recent addition of bzcopy. This was because sdp_sendmsg
returned before all in-flight RC transfers completed.
This allowed user space to modify buffers that had not been sent.

A big oops.

This fixes that bug.  Small frame bandwidth is even worse
now, but small frame latency is lower which is good.  The
default transfer size that triggers bzcopy has been
increased to the bandwidth crossover point found in
MLX4-MLX4 tests.  More work will be required to find the
best value for the release.

Signed-off-by: Jim Mott <jim@mellanox.com>
drivers/infiniband/ulp/sdp/sdp.h
drivers/infiniband/ulp/sdp/sdp_bcopy.c
drivers/infiniband/ulp/sdp/sdp_cma.c
drivers/infiniband/ulp/sdp/sdp_main.c