]> err.no Git - linux-2.6/commit
[IB] srp: don't post receive if no send buf available
authorRoland Dreier <rolandd@cisco.com>
Tue, 15 Nov 2005 08:19:21 +0000 (00:19 -0800)
committerRoland Dreier <rolandd@cisco.com>
Tue, 15 Nov 2005 08:19:21 +0000 (00:19 -0800)
commit47f2bce9021b4974ed33b072ebb8348c8145c946
tree2d17f2cdc77646d07cb2a598e3d2bcbdf94675ad
parent5f068992a1bccda5574b4f6d33458ef806686d7f
[IB] srp: don't post receive if no send buf available

Have __srp_get_tx_iu() fail if the target port's request limit will
not allow the initiator to post a send.  This avoids continuing on and
posting a receive, and then failing to post a corresponding send.  If
that happens, then the initiator will end up with an extra receive
posted, and if this happens to much, the receive queue will overflow.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/srp/ib_srp.c