• James Smart's avatar
    Fix driver load issues when MRQ=8 · 2b7824d0
    James Smart authored
    The symptom is that the driver will fail to login to the fabric.
    The reason is because it is out of iocb resources.
    
    There is a one to one relationship between MRQs
    (receive buffers for NVMET-FC) and iocbs and the default number of
    IOCBs was not accounting for the number of MRQs that were being created.
    
    This fix aligns the number of MRQ resources with the total resources so
    that it can handle fabric events when needed.
    
    Also the initialization of ctxlock to be on FCP commands, NOT LS commands.
    And modified log messages so that the log output can be correlated with
    the analyzer trace.
    Signed-off-by: default avatarDick Kennedy <dick.kennedy@broadcom.com>
    Signed-off-by: default avatarJames Smart <james.smart@broadcom.com>
    Reviewed-by: default avatarJohannes Thumshirn <jthumshirn@suse.de>
    2b7824d0
lpfc_nvme.c 78.3 KB