diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2006-02-01 21:06:49 -0600 |
---|---|---|
committer | <jejb@mulgrave.il.steeleye.com> | 2006-02-04 16:17:03 -0600 |
commit | 7b7232f3fb5ecd7c30cb52df368070cc5f5ca614 (patch) | |
tree | c7430280a69e587575bba336259e11a7aec8674e /include/scsi/iscsi_if.h | |
parent | bb08f92ebd75704e07d69bb9d8ee234d1a500b98 (diff) | |
download | kernel_samsung_smdk4412-7b7232f3fb5ecd7c30cb52df368070cc5f5ca614.tar.gz kernel_samsung_smdk4412-7b7232f3fb5ecd7c30cb52df368070cc5f5ca614.tar.bz2 kernel_samsung_smdk4412-7b7232f3fb5ecd7c30cb52df368070cc5f5ca614.zip |
[SCSI] iscsi update: cleanup iscsi class interface
From:
michaelc@cs.wisc.edu
fujita.tomonori@lab.ntt.co.jp
da-x@monatomic.org
and err path fixup from:
ogerlitz@voltaire.com
This patch cleans up that interface by having the lld and class
pass a iscsi_cls_session or iscsi_cls_conn between each other when
the function is used by HW and SW iscsi llds. This way the lld
does not have to remember if it has to send a handle or pointer
and a handle or pointer to connection, session or host.
This also has the class verify the session handle that gets passed from
userspace instead of using the pointer passed into the kernel directly.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: Alex Aizman <itn780@yahoo.com>
Signed-off-by: Dmitry Yusupov <dmitry_yus@yahoo.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'include/scsi/iscsi_if.h')
-rw-r--r-- | include/scsi/iscsi_if.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/include/scsi/iscsi_if.h b/include/scsi/iscsi_if.h index 3e5cb5ab2d3..e5618b90996 100644 --- a/include/scsi/iscsi_if.h +++ b/include/scsi/iscsi_if.h @@ -163,9 +163,6 @@ enum iscsi_param { }; #define ISCSI_PARAM_MAX 14 -typedef uint64_t iscsi_sessionh_t; /* iSCSI Data-Path session handle */ -typedef uint64_t iscsi_connh_t; /* iSCSI Data-Path connection handle */ - #define iscsi_ptr(_handle) ((void*)(unsigned long)_handle) #define iscsi_handle(_ptr) ((uint64_t)(unsigned long)_ptr) #define hostdata_session(_hostdata) (iscsi_ptr(*(unsigned long *)_hostdata)) |