]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 3 Mar 2013 22:03:31 +0000 (06:03 +0800)
commit21290853f60c7ca205c5860d059f240f2655ea65
tree0e61ff55a7e38304a4c1bd1a5ea6d3f1ecf8dd67
parent988eda029beb3475704c6bc99709f805cd3c768c
IB/srp: Avoid sending a task management function needlessly

commit 3780d1f08856f692116bcf026e4acf1c521df1c7 upstream.

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>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/ulp/srp/ib_srp.c