scsi: qedi: Add ep_state for login completion on un-reachable targets
authorManish Rangankar <mrangankar@marvell.com>
Wed, 9 Jan 2019 09:39:07 +0000 (01:39 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 27 Feb 2019 09:08:05 +0000 (10:08 +0100)
commit88c556795a158bbdee44abb46ac195eef4d5e2f6
treeb2a8c5b51722273c2739456d76b13de22817784e
parentf7e2a3857feb21fe06fc1d65363b6e3c5aef0cee
scsi: qedi: Add ep_state for login completion on un-reachable targets

[ Upstream commit 34a2ce887668db9dda4b56e6f155c49ac13f3e54 ]

When the driver finds invalid destination MAC for the first un-reachable
target, and before completes the PATH_REQ operation, set new ep_state to
OFFLDCONN_NONE so that as part of driver ep_poll mechanism, the upper
open-iscsi layer is notified to complete the login process on the first
un-reachable target and thus proceed login to other reachable targets.

Signed-off-by: Manish Rangankar <mrangankar@marvell.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/qedi/qedi_iscsi.c
drivers/scsi/qedi/qedi_iscsi.h