summaryrefslogtreecommitdiffstats
path: root/drivers/target
diff options
context:
space:
mode:
authorSheng Yang <sheng@yasker.org>2016-02-29 16:02:15 -0800
committerNicholas Bellinger <nab@linux-iscsi.org>2016-03-10 21:49:09 -0800
commit32c76de3466ed2a875e36c140ac4e3800fdfab6e (patch)
tree1296fc2d9efffb9deb50de671be4f69d5af7dcde /drivers/target
parent0241fd39ce7bc9b82b7e57305cb0d6bb1364d45b (diff)
downloadop-kernel-dev-32c76de3466ed2a875e36c140ac4e3800fdfab6e.zip
op-kernel-dev-32c76de3466ed2a875e36c140ac4e3800fdfab6e.tar.gz
target/user: Report capability of handling out-of-order completions to userspace
TCMU_MAILBOX_FLAG_CAP_OOOC was introduced, and userspace can check the flag for out-of-order completion capability support. Also update the document on how to use the feature. Signed-off-by: Sheng Yang <sheng@yasker.org> Reviewed-by: Andy Grover <agrover@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target')
-rw-r--r--drivers/target/target_core_user.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/target/target_core_user.c b/drivers/target/target_core_user.c
index fc4789c..62bf4fe 100644
--- a/drivers/target/target_core_user.c
+++ b/drivers/target/target_core_user.c
@@ -930,6 +930,7 @@ static int tcmu_configure_device(struct se_device *dev)
mb = udev->mb_addr;
mb->version = TCMU_MAILBOX_VERSION;
+ mb->flags = TCMU_MAILBOX_FLAG_CAP_OOOC;
mb->cmdr_off = CMDR_OFF;
mb->cmdr_size = udev->cmdr_size;
OpenPOWER on IntegriCloud