Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Jul 2014 06:17:08 +0000 (UTC)
From:      Alexander Motin <mav@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r268357 - head/sys/cam/ctl
Message-ID:  <201407070617.s676H8b4076700@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mav
Date: Mon Jul  7 06:17:07 2014
New Revision: 268357
URL: http://svnweb.freebsd.org/changeset/base/268357

Log:
  Correction to r268356: collide only sessions to the same target.

Modified:
  head/sys/cam/ctl/ctl_frontend_iscsi.c

Modified: head/sys/cam/ctl/ctl_frontend_iscsi.c
==============================================================================
--- head/sys/cam/ctl/ctl_frontend_iscsi.c	Mon Jul  7 05:48:11 2014	(r268356)
+++ head/sys/cam/ctl/ctl_frontend_iscsi.c	Mon Jul  7 06:17:07 2014	(r268357)
@@ -1507,6 +1507,8 @@ restart:
 		mtx_lock(&softc->lock);
 		TAILQ_FOREACH(cs2, &softc->sessions, cs_next) {
 			if (cs2 != cs && cs2->cs_tasks_aborted == false &&
+			    cs->cs_target == cs2->cs_target &&
+			    cs->cs_portal_group_tag == cs2->cs_portal_group_tag &&
 			    strcmp(cs->cs_initiator_id, cs2->cs_initiator_id) == 0) {
 				cfiscsi_session_terminate(cs2);
 				mtx_unlock(&softc->lock);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407070617.s676H8b4076700>