]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
[SCSI] iscsi_tcp: use iscsi_conn_get_addr_param libiscsi function
authorMike Christie <michaelc@cs.wisc.edu>
Wed, 16 Feb 2011 21:04:36 +0000 (15:04 -0600)
committerJames Bottomley <James.Bottomley@suse.de>
Thu, 24 Feb 2011 17:41:10 +0000 (12:41 -0500)
commita79af8a64d395bd89de8695a5ea5e1a7f01f02a8
tree510c13cb1e283c2809c0ca7e8d5f2dedd9ad6b76
parent00f3708e6ed1698d6aee3901ea991197e31a8007
[SCSI] iscsi_tcp: use iscsi_conn_get_addr_param libiscsi function

This has iscsi_tcp use the iscsi_conn_get_addr_param
libiscsi function. It also drops the use of the libiscsi
session portal buffers, so they can be removed in
the next patches. Instead of copying the values
at bind time we get them during get() time. If we are
not connected userspace will now get -ENOTCONN,
so it knows that connection is disconnected instead
of a possible stale value.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/iscsi_tcp.c
drivers/scsi/iscsi_tcp.h