Skip to content
Commit 0ab71045 authored by Bharath Ravi's avatar Bharath Ravi Committed by Martin K. Petersen
Browse files

scsi: iscsi: Perform connection failure entirely in kernel space

Connection failure processing depends on a daemon being present to (at
least) stop the connection and start recovery.  This is a problem on a
multipath scenario, where if the daemon failed for whatever reason, the
SCSI path is never marked as down, multipath won't perform the failover and
IO to the device will be forever waiting for that connection to come back.

This patch performs the connection failure entirely inside the kernel.
This way, the failover can happen and pending IO can continue even if the
daemon is dead. Once the daemon comes alive again, it can execute recovery
procedures if applicable.

Cc: Mike Christie <mchristi@redhat.com>
Cc: Lee Duncan <LDuncan@suse.com>
Cc: Bart Van Assche <bvanassche@acm.org>
Link: https://lore.kernel.org/r/20200125061925.191601-1-krisman@collabora.com


Co-developed-by: default avatarDave Clausen <dclausen@google.com>
Co-developed-by: default avatarNick Black <nlb@google.com>
Co-developed-by: default avatarVaibhav Nagarnaik <vnagarnaik@google.com>
Co-developed-by: default avatarAnatol Pomazau <anatol@google.com>
Co-developed-by: default avatarTahsin Erdogan <tahsin@google.com>
Co-developed-by: default avatarFrank Mayhar <fmayhar@google.com>
Co-developed-by: default avatarJunho Ryu <jayr@google.com>
Co-developed-by: default avatarKhazhismel Kumykov <khazhy@google.com>
Reviewed-by: default avatarReviewed-by: Khazhismel Kumykov <khazhy@google.com>
Co-developed-by: default avatarGabriel Krisman Bertazi <krisman@collabora.com>
Reviewed-by: default avatarLee Duncan <lduncan@suse.com>
Signed-off-by: default avatarBharath Ravi <rbharath@google.com>
Signed-off-by: default avatarDave Clausen <dclausen@google.com>
Signed-off-by: default avatarNick Black <nlb@google.com>
Signed-off-by: default avatarVaibhav Nagarnaik <vnagarnaik@google.com>
Signed-off-by: default avatarAnatol Pomazau <anatol@google.com>
Signed-off-by: default avatarTahsin Erdogan <tahsin@google.com>
Signed-off-by: default avatarFrank Mayhar <fmayhar@google.com>
Signed-off-by: default avatarJunho Ryu <jayr@google.com>
Signed-off-by: default avatarKhazhismel Kumykov <khazhy@google.com>
Signed-off-by: default avatarGabriel Krisman Bertazi <krisman@collabora.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 80363e1b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment