lkml.org 
[lkml]   [2022]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.4 314/475] scsi: qla2xxx: Fix stuck session in gpdb
    Date
    From: Quinn Tran <qutran@marvell.com>

    commit 725d3a0d31a51c0debf970011e05f585e805165b upstream.

    Fix stuck sessions in get port database. When a thread is in the process of
    re-establishing a session, a flag is set to prevent multiple threads /
    triggers from doing the same task. This flag was left on, where any attempt
    to relogin was locked out. Clear this flag, if the attempt has failed.

    Link: https://lore.kernel.org/r/20220110050218.3958-4-njavali@marvell.com
    Cc: stable@vger.kernel.org
    Reviewed-by: Himanshu Madhani <himanshu.madhani@oracle.com>
    Signed-off-by: Quinn Tran <qutran@marvell.com>
    Signed-off-by: Nilesh Javali <njavali@marvell.com>
    Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
    Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
    ---
    drivers/scsi/qla2xxx/qla_init.c | 6 +++---
    1 file changed, 3 insertions(+), 3 deletions(-)

    --- a/drivers/scsi/qla2xxx/qla_init.c
    +++ b/drivers/scsi/qla2xxx/qla_init.c
    @@ -1314,9 +1314,9 @@ int qla24xx_async_gpdb(struct scsi_qla_h
    if (!vha->flags.online || (fcport->flags & FCF_ASYNC_SENT) ||
    fcport->loop_id == FC_NO_LOOP_ID) {
    ql_log(ql_log_warn, vha, 0xffff,
    - "%s: %8phC - not sending command.\n",
    - __func__, fcport->port_name);
    - return rval;
    + "%s: %8phC online %d flags %x - not sending command.\n",
    + __func__, fcport->port_name, vha->flags.online, fcport->flags);
    + goto done;
    }

    sp = qla2x00_get_sp(vha, fcport, GFP_KERNEL);

    \
     
     \ /
      Last update: 2022-04-14 17:09    [W:3.075 / U:0.048 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site