diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2011-02-16 22:04:36 +0100 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2011-02-24 18:41:10 +0100 |
commit | a79af8a64d395bd89de8695a5ea5e1a7f01f02a8 (patch) | |
tree | 510c13cb1e283c2809c0ca7e8d5f2dedd9ad6b76 /drivers/scsi/iscsi_tcp.h | |
parent | [SCSI] libiscsi: add helper to convert addr to string (diff) | |
download | linux-a79af8a64d395bd89de8695a5ea5e1a7f01f02a8.tar.xz linux-a79af8a64d395bd89de8695a5ea5e1a7f01f02a8.zip |
[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>
Diffstat (limited to 'drivers/scsi/iscsi_tcp.h')
-rw-r--r-- | drivers/scsi/iscsi_tcp.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/scsi/iscsi_tcp.h b/drivers/scsi/iscsi_tcp.h index 94644bad0ed7..666fe09378fa 100644 --- a/drivers/scsi/iscsi_tcp.h +++ b/drivers/scsi/iscsi_tcp.h @@ -55,6 +55,10 @@ struct iscsi_sw_tcp_conn { ssize_t (*sendpage)(struct socket *, struct page *, int, size_t, int); }; +struct iscsi_sw_tcp_host { + struct iscsi_session *session; +}; + struct iscsi_sw_tcp_hdrbuf { struct iscsi_hdr hdrbuf; char hdrextbuf[ISCSI_MAX_AHS_SIZE + |