]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 3 Oct 2013 11:23:17 +0000 (04:23 -0700)
commitc807f64340932e19f0d2ac9b30c8381e1f60663a
tree00ef452bc91025e8ff1670eae5b124390c04cb5a
parent8c7f6e9b3321f5ede7f33974cad06db224661a42
ib_srpt: always set response for task management

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>
Cc: stable@vger.kernel.org # 3.3+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/infiniband/ulp/srpt/ib_srpt.c