]> git.ipfire.org Git - people/arne_f/kernel.git/commit
ib_srpt: always set response for task management
authorJack Wang <jinpu.wang@profitbricks.com>
Mon, 30 Sep 2013 08:09:05 +0000 (10:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Oct 2013 01:14:30 +0000 (18:14 -0700)
commit5cd8446d12b70185dc2a89993e5b58d5623d9432
tree81b574bc8a55fdc43baad41bd1ff1d3955b4219c
parent08c8454beba7398842b7d5310d69f9e6ce3b8f47
ib_srpt: always set response for task management

commit c807f64340932e19f0d2ac9b30c8381e1f60663a upstream.

The SRP specification requires:

  "Response data shall be provided in any SRP_RSP response that is sent in
   response to an SRP_TSK_MGMT request (see 6.7). The information in the
   RSP_CODE field (see table 24) shall indicate the completion status of
   the task management function."

So fix this to avoid the SRP initiator interprets task management functions
that succeeded as failed.

Signed-off-by: Jack Wang <jinpu.wang@profitbricks.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/ulp/srpt/ib_srpt.c