summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2014-04-17 12:41:12 +0000
committertrasz <trasz@FreeBSD.org>2014-04-17 12:41:12 +0000
commit37c6468863f1979a886b37eab125a848a6b73614 (patch)
treebac384ac407229e441b15a6d29b48eeeb2375b6f
parent653b49f2d557e76a2264bbadc720afbc2cefbd67 (diff)
downloadFreeBSD-src-37c6468863f1979a886b37eab125a848a6b73614.zip
FreeBSD-src-37c6468863f1979a886b37eab125a848a6b73614.tar.gz
MFC r262837:
Make reset handling in iSCSI target RFC-compliant. This fixes some rare hangs with Open-iSCSI (Linux). Sponsored by: The FreeBSD Foundation
-rw-r--r--sys/cam/ctl/ctl_frontend_iscsi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/cam/ctl/ctl_frontend_iscsi.c b/sys/cam/ctl/ctl_frontend_iscsi.c
index fecfbc2..29444c6 100644
--- a/sys/cam/ctl/ctl_frontend_iscsi.c
+++ b/sys/cam/ctl/ctl_frontend_iscsi.c
@@ -633,11 +633,11 @@ cfiscsi_pdu_handle_task_request(struct icl_pdu *request)
#endif
io->taskio.task_action = CTL_TASK_LUN_RESET;
break;
- case BHSTMR_FUNCTION_TARGET_COLD_RESET:
+ case BHSTMR_FUNCTION_TARGET_WARM_RESET:
#if 0
- CFISCSI_SESSION_DEBUG(cs, "BHSTMR_FUNCTION_TARGET_COLD_RESET");
+ CFISCSI_SESSION_DEBUG(cs, "BHSTMR_FUNCTION_TARGET_WARM_RESET");
#endif
- io->taskio.task_action = CTL_TASK_BUS_RESET;
+ io->taskio.task_action = CTL_TASK_TARGET_RESET;
break;
default:
CFISCSI_SESSION_DEBUG(cs, "unsupported function 0x%x",
OpenPOWER on IntegriCloud