[SCSI] iscsi update: cleanup iscsi class interface
authorMike Christie <michaelc@cs.wisc.edu>
Thu, 2 Feb 2006 03:06:49 +0000 (21:06 -0600)
committer <jejb@mulgrave.il.steeleye.com>
Sat, 4 Feb 2006 22:17:03 +0000 (16:17 -0600)
commit7b7232f3fb5ecd7c30cb52df368070cc5f5ca614
treec7430280a69e587575bba336259e11a7aec8674e
parentbb08f92ebd75704e07d69bb9d8ee234d1a500b98
[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>
drivers/scsi/iscsi_tcp.c
drivers/scsi/iscsi_tcp.h
drivers/scsi/scsi_transport_iscsi.c
include/scsi/iscsi_if.h
include/scsi/scsi_transport_iscsi.h