diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-02-13 01:07:22 -0800 |
---|---|---|
committer | Nicholas Bellinger <nab@linux-iscsi.org> | 2012-02-25 14:37:49 -0800 |
commit | 86715569d085addc635c2b55ee8acb79d3a7fbbf (patch) | |
tree | b6b6d554b329a86845d8de661529c3fc2bc6dbef /include/target | |
parent | 2fbff1276bb635294b3384b6c167f72d0acdab95 (diff) | |
download | op-kernel-dev-86715569d085addc635c2b55ee8acb79d3a7fbbf.zip op-kernel-dev-86715569d085addc635c2b55ee8acb79d3a7fbbf.tar.gz |
target: Add SCF_ACK_KREF flag for acknowledgement kref
When TARGET_SCF_ACK_KREF is in use with target_submit_cmd() for
setting the extra acknowledgement reference to se_cmd->cmd_kref,
go ahead and set SCF_ACK_KREF in order to be used later by
abort task.
Reported-by: Roland Dreier <roland@purestorage.com>
Cc: Christoph Hellwig <hch@lst.de>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/target')
-rw-r--r-- | include/target/target_core_base.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h index 9d514e0..bbcf803 100644 --- a/include/target/target_core_base.h +++ b/include/target/target_core_base.h @@ -184,7 +184,8 @@ enum se_cmd_flags_table { SCF_ALUA_NON_OPTIMIZED = 0x00040000, SCF_DELAYED_CMD_FROM_SAM_ATTR = 0x00080000, SCF_UNUSED = 0x00100000, - SCF_PASSTHROUGH_SG_TO_MEM_NOALLOC = 0x00400000, + SCF_PASSTHROUGH_SG_TO_MEM_NOALLOC = 0x00200000, + SCF_ACK_KREF = 0x00400000, }; /* struct se_dev_entry->lun_flags and struct se_lun->lun_access */ |