]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sdp: if can't recv or send, and the qp is not active, return -EPIPE instead of 0
authorEldad Zinger <eldadz@mellanox.co.il>
Wed, 7 Jul 2010 15:48:27 +0000 (18:48 +0300)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 6 Oct 2015 12:05:09 +0000 (05:05 -0700)
commit2409cdab42bcebc29ccf875f972b71adf8c20455
tree88df8d9223dbea21fbbf4bb4721cd33ebbe99332
parent6070121c591db84d06fd99a7f2f348a551c87014
sdp: if can't recv or send, and the qp is not active, return -EPIPE instead of 0

This fixes an endles loop problem where userspace programs are looping on recv
or send until all required bytes processed or until an error returned.

Signed-off-by: Eldad Zinger <eldadz@mellanox.co.il>
drivers/infiniband/ulp/sdp/sdp_main.c