[SCSI] iscsi class: user device_for_each_child instead of duplicating session list
Currently we duplicate the list of sessions, because we were using the test for if a session was on the host list to indicate if the session was bound or unbound. We can instead use the target_id and fix up the class so that drivers like bnx2i do not have to manage the target id space. Signed-off-by:Mike Christie <michaelc@cs.wisc.edu> Signed-off-by:
James Bottomley <James.Bottomley@HansenPartnership.com>
Showing
- drivers/infiniband/ulp/iser/iscsi_iser.c 1 addition, 1 deletiondrivers/infiniband/ulp/iser/iscsi_iser.c
- drivers/scsi/iscsi_tcp.c 1 addition, 1 deletiondrivers/scsi/iscsi_tcp.c
- drivers/scsi/libiscsi.c 2 additions, 2 deletionsdrivers/scsi/libiscsi.c
- drivers/scsi/scsi_transport_iscsi.c 96 additions, 29 deletionsdrivers/scsi/scsi_transport_iscsi.c
- include/scsi/libiscsi.h 1 addition, 1 deletioninclude/scsi/libiscsi.h
- include/scsi/scsi_transport_iscsi.h 3 additions, 3 deletionsinclude/scsi/scsi_transport_iscsi.h
Loading
Please register or sign in to comment