]> git.karo-electronics.de Git - karo-tx-linux.git/commit
IB/srp: Avoid sending a task management function needlessly
authorBart Van Assche <bvanassche@acm.org>
Thu, 21 Feb 2013 17:18:00 +0000 (17:18 +0000)
committerRoland Dreier <roland@purestorage.com>
Mon, 25 Feb 2013 17:31:14 +0000 (09:31 -0800)
commit3780d1f08856f692116bcf026e4acf1c521df1c7
tree0d7c14403767836e3dae755e836b2dfcf53cde15
parente1b2f13aba9ff714d23ecd4a950e744ee7ad72e1
IB/srp: Avoid sending a task management function needlessly

Do not send a task management function if sending will fail anyway
because either there is no RDMA/RC connection or the QP is in the
error state.

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Acked-by: David Dillow <dave@thedillows.org>
Cc: <stable@vger.kernel.org> # 3.8
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/ulp/srp/ib_srp.c