diff options
author | Sheng Yang <sheng@yasker.org> | 2016-02-29 16:02:15 -0800 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2016-03-10 21:49:09 -0800 |
commit | 32c76de3466ed2a875e36c140ac4e3800fdfab6e (patch) | |
tree | 1296fc2d9efffb9deb50de671be4f69d5af7dcde /drivers/target/target_core_user.c | |
parent | 0241fd39ce7bc9b82b7e57305cb0d6bb1364d45b (diff) | |
download | op-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/target_core_user.c')
-rw-r--r-- | drivers/target/target_core_user.c | 1 |
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; |