[SCSI] libiscsi, iser, tcp: remove recv_lock
The recv lock was defined so the iscsi layer could block the recv path from processing IO during recovery. It turns out iser just set a lock to that pointer which was pointless. We now disconnect the transport connection before doing recovery so we do not need the recv lock. For iscsi_tcp we still stop the recv path incase older tools are being used. This patch also has iscsi_itt_to_ctask user grab the session lock and has the caller access the task with the lock or get a ref to it in case the target is broken and sends a tmf success response then sends data or a response for the command that was supposed to be affected bty the tmf. 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 10 additions, 10 deletionsdrivers/infiniband/ulp/iser/iscsi_iser.c
- drivers/infiniband/ulp/iser/iscsi_iser.h 0 additions, 2 deletionsdrivers/infiniband/ulp/iser/iscsi_iser.h
- drivers/infiniband/ulp/iser/iser_initiator.c 6 additions, 0 deletionsdrivers/infiniband/ulp/iser/iser_initiator.c
- drivers/scsi/iscsi_tcp.c 39 additions, 34 deletionsdrivers/scsi/iscsi_tcp.c
- drivers/scsi/libiscsi.c 86 additions, 66 deletionsdrivers/scsi/libiscsi.c
- include/scsi/libiscsi.h 3 additions, 5 deletionsinclude/scsi/libiscsi.h
Loading
Please register or sign in to comment