aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2011-03-14 07:06:04 -0400
committerJames Bottomley <James.Bottomley@suse.de>2011-03-23 12:36:35 -0400
commit5c6cd613196558ba50ba97268b6d225c8d2f56d6 (patch)
tree9b00f8e0b21eb4e49f2237be72b468c1c7d30d0e /drivers/target
parent065f97161b2da30b13000b1d9f64adff7e01e270 (diff)
[SCSI] target: Convert TMR REQ/RSP definitions to target namespace
This patch changes include/target/target_core_tmr.h code to use target specific 'TMR_*' prefixed definitions for fabric independent SCSI Task Management Request/Request naming in include/scsi/scsi.h definitions for mainline target code. Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/target')
-rw-r--r--drivers/target/target_core_transport.c19
1 files changed, 7 insertions, 12 deletions
diff --git a/drivers/target/target_core_transport.c b/drivers/target/target_core_transport.c
index 80df4056f9f1..20ab27cb3e45 100644
--- a/drivers/target/target_core_transport.c
+++ b/drivers/target/target_core_transport.c
@@ -5832,31 +5832,26 @@ int transport_generic_do_tmr(struct se_cmd *cmd)
5832 int ret; 5832 int ret;
5833 5833
5834 switch (tmr->function) { 5834 switch (tmr->function) {
5835 case ABORT_TASK: 5835 case TMR_ABORT_TASK:
5836 ref_cmd = tmr->ref_cmd; 5836 ref_cmd = tmr->ref_cmd;
5837 tmr->response = TMR_FUNCTION_REJECTED; 5837 tmr->response = TMR_FUNCTION_REJECTED;
5838 break; 5838 break;
5839 case ABORT_TASK_SET: 5839 case TMR_ABORT_TASK_SET:
5840 case CLEAR_ACA: 5840 case TMR_CLEAR_ACA:
5841 case CLEAR_TASK_SET: 5841 case TMR_CLEAR_TASK_SET:
5842 tmr->response = TMR_TASK_MGMT_FUNCTION_NOT_SUPPORTED; 5842 tmr->response = TMR_TASK_MGMT_FUNCTION_NOT_SUPPORTED;
5843 break; 5843 break;
5844 case LUN_RESET: 5844 case TMR_LUN_RESET:
5845 ret = core_tmr_lun_reset(dev, tmr, NULL, NULL); 5845 ret = core_tmr_lun_reset(dev, tmr, NULL, NULL);
5846 tmr->response = (!ret) ? TMR_FUNCTION_COMPLETE : 5846 tmr->response = (!ret) ? TMR_FUNCTION_COMPLETE :
5847 TMR_FUNCTION_REJECTED; 5847 TMR_FUNCTION_REJECTED;
5848 break; 5848 break;
5849#if 0 5849 case TMR_TARGET_WARM_RESET:
5850 case TARGET_WARM_RESET:
5851 transport_generic_host_reset(dev->se_hba);
5852 tmr->response = TMR_FUNCTION_REJECTED; 5850 tmr->response = TMR_FUNCTION_REJECTED;
5853 break; 5851 break;
5854 case TARGET_COLD_RESET: 5852 case TMR_TARGET_COLD_RESET:
5855 transport_generic_host_reset(dev->se_hba);
5856 transport_generic_cold_reset(dev->se_hba);
5857 tmr->response = TMR_FUNCTION_REJECTED; 5853 tmr->response = TMR_FUNCTION_REJECTED;
5858 break; 5854 break;
5859#endif
5860 default: 5855 default:
5861 printk(KERN_ERR "Uknown TMR function: 0x%02x.\n", 5856 printk(KERN_ERR "Uknown TMR function: 0x%02x.\n",
5862 tmr->function); 5857 tmr->function);