[SCSI] target: Add LIO target core v4.0.0-rc6
LIO target is a full featured in-kernel target framework with the
following feature set:
High-performance, non-blocking, multithreaded architecture with SIMD
support.
Advanced SCSI feature set:
* Persistent Reservations (PRs)
* Asymmetric Logical Unit Assignment (ALUA)
* Protocol and intra-nexus multiplexing, load-balancing and failover (MC/S)
* Full Error Recovery (ERL=0,1,2)
* Active/active task migration and session continuation (ERL=2)
* Thin LUN provisioning (UNMAP and WRITE_SAMExx)
Multiprotocol target plugins
Storage media independence:
* Virtualization of all storage media; transparent mapping of IO to LUNs
* No hard limits on number of LUNs per Target; maximum LUN size ~750 TB
* Backstores: SATA, SAS, SCSI, BluRay, DVD, FLASH, USB, ramdisk, etc.
Standards compliance:
* Full compliance with IETF (RFC 3720)
* Full implementation of SPC-4 PRs and ALUA
Significant code cleanups done by Christoph Hellwig.
[jejb: fix up for new block bdev exclusive interface. Minor fixes from
Randy Dunlap and Dan Carpenter.]
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2010-12-17 19:11:26 +00:00
|
|
|
#ifndef TARGET_CORE_TMR_H
|
|
|
|
#define TARGET_CORE_TMR_H
|
|
|
|
|
2011-03-14 11:06:04 +00:00
|
|
|
/* fabric independent task management function values */
|
|
|
|
enum tcm_tmreq_table {
|
|
|
|
TMR_ABORT_TASK = 1,
|
|
|
|
TMR_ABORT_TASK_SET = 2,
|
|
|
|
TMR_CLEAR_ACA = 3,
|
|
|
|
TMR_CLEAR_TASK_SET = 4,
|
|
|
|
TMR_LUN_RESET = 5,
|
|
|
|
TMR_TARGET_WARM_RESET = 6,
|
|
|
|
TMR_TARGET_COLD_RESET = 7,
|
|
|
|
TMR_FABRIC_TMR = 255,
|
|
|
|
};
|
[SCSI] target: Add LIO target core v4.0.0-rc6
LIO target is a full featured in-kernel target framework with the
following feature set:
High-performance, non-blocking, multithreaded architecture with SIMD
support.
Advanced SCSI feature set:
* Persistent Reservations (PRs)
* Asymmetric Logical Unit Assignment (ALUA)
* Protocol and intra-nexus multiplexing, load-balancing and failover (MC/S)
* Full Error Recovery (ERL=0,1,2)
* Active/active task migration and session continuation (ERL=2)
* Thin LUN provisioning (UNMAP and WRITE_SAMExx)
Multiprotocol target plugins
Storage media independence:
* Virtualization of all storage media; transparent mapping of IO to LUNs
* No hard limits on number of LUNs per Target; maximum LUN size ~750 TB
* Backstores: SATA, SAS, SCSI, BluRay, DVD, FLASH, USB, ramdisk, etc.
Standards compliance:
* Full compliance with IETF (RFC 3720)
* Full implementation of SPC-4 PRs and ALUA
Significant code cleanups done by Christoph Hellwig.
[jejb: fix up for new block bdev exclusive interface. Minor fixes from
Randy Dunlap and Dan Carpenter.]
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2010-12-17 19:11:26 +00:00
|
|
|
|
2011-03-14 11:06:04 +00:00
|
|
|
/* fabric independent task management response values */
|
|
|
|
enum tcm_tmrsp_table {
|
|
|
|
TMR_FUNCTION_COMPLETE = 0,
|
|
|
|
TMR_TASK_DOES_NOT_EXIST = 1,
|
|
|
|
TMR_LUN_DOES_NOT_EXIST = 2,
|
|
|
|
TMR_TASK_STILL_ALLEGIANT = 3,
|
|
|
|
TMR_TASK_FAILOVER_NOT_SUPPORTED = 4,
|
|
|
|
TMR_TASK_MGMT_FUNCTION_NOT_SUPPORTED = 5,
|
|
|
|
TMR_FUNCTION_AUTHORIZATION_FAILED = 6,
|
|
|
|
TMR_FUNCTION_REJECTED = 255,
|
|
|
|
};
|
[SCSI] target: Add LIO target core v4.0.0-rc6
LIO target is a full featured in-kernel target framework with the
following feature set:
High-performance, non-blocking, multithreaded architecture with SIMD
support.
Advanced SCSI feature set:
* Persistent Reservations (PRs)
* Asymmetric Logical Unit Assignment (ALUA)
* Protocol and intra-nexus multiplexing, load-balancing and failover (MC/S)
* Full Error Recovery (ERL=0,1,2)
* Active/active task migration and session continuation (ERL=2)
* Thin LUN provisioning (UNMAP and WRITE_SAMExx)
Multiprotocol target plugins
Storage media independence:
* Virtualization of all storage media; transparent mapping of IO to LUNs
* No hard limits on number of LUNs per Target; maximum LUN size ~750 TB
* Backstores: SATA, SAS, SCSI, BluRay, DVD, FLASH, USB, ramdisk, etc.
Standards compliance:
* Full compliance with IETF (RFC 3720)
* Full implementation of SPC-4 PRs and ALUA
Significant code cleanups done by Christoph Hellwig.
[jejb: fix up for new block bdev exclusive interface. Minor fixes from
Randy Dunlap and Dan Carpenter.]
Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
2010-12-17 19:11:26 +00:00
|
|
|
|
|
|
|
extern struct kmem_cache *se_tmr_req_cache;
|
|
|
|
|
|
|
|
extern struct se_tmr_req *core_tmr_alloc_req(struct se_cmd *, void *, u8);
|
|
|
|
extern void core_tmr_release_req(struct se_tmr_req *);
|
|
|
|
extern int core_tmr_lun_reset(struct se_device *, struct se_tmr_req *,
|
|
|
|
struct list_head *, struct se_cmd *);
|
|
|
|
|
|
|
|
#endif /* TARGET_CORE_TMR_H */
|