Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 24 Nov 2015 01:07:57 +0000 (UTC)
From:      Navdeep Parhar <np@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-projects@freebsd.org
Subject:   svn commit: r291227 - projects/cxl_iscsi/sys/dev/iscsi
Message-ID:  <201511240107.tAO17vp0088887@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: np
Date: Tue Nov 24 01:07:57 2015
New Revision: 291227
URL: https://svnweb.freebsd.org/changeset/base/291227

Log:
  s/is->is_conn/ic to shorten things a bit.

Modified:
  projects/cxl_iscsi/sys/dev/iscsi/iscsi.c

Modified: projects/cxl_iscsi/sys/dev/iscsi/iscsi.c
==============================================================================
--- projects/cxl_iscsi/sys/dev/iscsi/iscsi.c	Tue Nov 24 00:49:29 2015	(r291226)
+++ projects/cxl_iscsi/sys/dev/iscsi/iscsi.c	Tue Nov 24 01:07:57 2015	(r291227)
@@ -1329,6 +1329,7 @@ iscsi_ioctl_daemon_handoff(struct iscsi_
     struct iscsi_daemon_handoff *handoff)
 {
 	struct iscsi_session *is;
+	struct icl_conn *ic;
 	int error;
 
 	sx_slock(&sc->sc_lock);
@@ -1345,6 +1346,7 @@ iscsi_ioctl_daemon_handoff(struct iscsi_
 		return (ESRCH);
 	}
 	ISCSI_SESSION_LOCK(is);
+	ic = is->is_conn;
 	if (is->is_conf.isc_discovery || is->is_terminating) {
 		ISCSI_SESSION_UNLOCK(is);
 		sx_sunlock(&sc->sc_lock);
@@ -1374,13 +1376,13 @@ iscsi_ioctl_daemon_handoff(struct iscsi_
 	is->is_first_burst_length = handoff->idh_first_burst_length;
 
 	if (handoff->idh_header_digest == ISCSI_DIGEST_CRC32C)
-		is->is_conn->ic_header_crc32c = true;
+		ic->ic_header_crc32c = true;
 	else
-		is->is_conn->ic_header_crc32c = false;
+		ic->ic_header_crc32c = false;
 	if (handoff->idh_data_digest == ISCSI_DIGEST_CRC32C)
-		is->is_conn->ic_data_crc32c = true;
+		ic->ic_data_crc32c = true;
 	else
-		is->is_conn->ic_data_crc32c = false;
+		ic->ic_data_crc32c = false;
 
 	is->is_cmdsn = 0;
 	is->is_expcmdsn = 0;
@@ -1399,7 +1401,7 @@ iscsi_ioctl_daemon_handoff(struct iscsi_
 		/*
 		 * Handoff without using ICL proxy.
 		 */
-		error = icl_conn_handoff(is->is_conn, handoff->idh_socket);
+		error = icl_conn_handoff(ic, handoff->idh_socket);
 		if (error != 0) {
 			sx_sunlock(&sc->sc_lock);
 			iscsi_session_terminate(is);



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