]> git.baikalelectronics.ru Git - kernel.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)
commit5e418e970a571577f5e302910fcdb098913d087c
tree510c13cb1e283c2809c0ca7e8d5f2dedd9ad6b76
parent6d588911c7d0ac25a645b2a986ce73578f178b18
[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