IB/srp: Fix a connection setup race
authorBart Van Assche <bart.vanassche@sandisk.com>
Mon, 18 May 2015 11:23:36 +0000 (13:23 +0200)
committerDoug Ledford <dledford@redhat.com>
Mon, 18 May 2015 17:35:55 +0000 (13:35 -0400)
commit8de9fe3a1d4ac8c3e4953fa4b7d81f863f5196ad
tree15eca90fb74b49c20989eafec1e6f8f4b2311f59
parentfb49c8bbaae70b14fea2b4590a90a21539f88526
IB/srp: Fix a connection setup race

Avoid that receiving a DREQ while RDMA channels are being
established causes target->qp_in_error to be reset.

Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Sagi Grimberg <sagig@mellanox.com>
Cc: Sebastian Parschauer <sebastian.riemer@profitbricks.com>
Cc: <stable@vger.kernel.org> #v3.19
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/ulp/srp/ib_srp.c