Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp9522823rwl; Wed, 11 Jan 2023 06:48:39 -0800 (PST) X-Google-Smtp-Source: AMrXdXuMAeVJSaHVYWySqbOIic7OI+PgJkyZMPd4Jw0DHuh9gkjHPjryTZNxULLKpMz1Fn3KTg57 X-Received: by 2002:a17:90b:3704:b0:226:e9f1:75ee with SMTP id mg4-20020a17090b370400b00226e9f175eemr15827630pjb.37.1673448519268; Wed, 11 Jan 2023 06:48:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673448519; cv=none; d=google.com; s=arc-20160816; b=uJvW2S2zmoSKU2go3qSpUOIuirQpQSi5ykS1P4hv7RQ/wquUBvJeGF+gmsNuSz4ZJw YKnjzetZYhWORe+u31MMJpt/WdqT7GIpnkE68Af0MEJCBUAK069nkkWkTHTbmCS4l7Rp aolX5VSRzt7EwvmprkaLE1YeGiqpXxMSO5az9H5MVps6Ia0FO/YMUm8VnTj81ORNxHk6 et0+pUwfPpq1CxYX3dUUoV0wkfYc3Xzd8+wp15mzcyJAAn/f6ST6yxg/1iAuepCZ2272 ZaDSb9PoMvg70BXByafYQu/yHtceXdNHPHNJR1vhkF0byB4RpOFL4A2CF/8V2WhYRJJo Lt0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature :dkim-signature; bh=NL+HnkITOgHJ0AagPsed/d+7cGSBCRxbVWfXMOm+fYo=; b=s+ySIg8GPVCgoxmmPprW0/UfHvJYWROssqi/MKFeRkFKF351gRb5vWBGRcmDSNkmb7 KjuKHDqdp9HNCa/fz9uTbnAYxQN/27Ut0R7arlqtq+8v7GCCbQdRKf4cbP4So12ILbWC cfV95iuxF6YSPSBqmcQP76z2KpsoGPwmQVlaoPTIfaPF1j29wxQPG+QQaIU6q1Oy38sv CSXqGmmQs2FIs1fK5pXdfPEZv5B0sbDjEnNcRCqLaQSLrF4KdGOlOPB4rTbK89PG7Qhj dpZVrwOf+QC37kzOFWzUfoh+nRmII+nPVckbY/aDgphA2EqewxdV3Wg7gtRcgBqSCZTl l9Yw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=tVlRC1Qg; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id lp11-20020a17090b4a8b00b00218b76cda10si15012371pjb.0.2023.01.11.06.48.32; Wed, 11 Jan 2023 06:48:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@suse.de header.s=susede2_rsa header.b=tVlRC1Qg; dkim=neutral (no key) header.i=@suse.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=suse.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232477AbjAKOIy (ORCPT + 53 others); Wed, 11 Jan 2023 09:08:54 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232656AbjAKOIw (ORCPT ); Wed, 11 Jan 2023 09:08:52 -0500 Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2CCF1270; Wed, 11 Jan 2023 06:08:52 -0800 (PST) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id C5E9417B5C; Wed, 11 Jan 2023 14:08:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1673446130; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=NL+HnkITOgHJ0AagPsed/d+7cGSBCRxbVWfXMOm+fYo=; b=tVlRC1Qg/hU8p77dRFo8KJRw3dOMRYE3XNLcaVkDwUkrwWEKqRBZSpRd5eleFS2BU3Cp/c RAumpKoMM0DzgIejNhVbw6rf/UZX2h5i9b7XDFimvXxYzjtK4TeGwFScakDMmd2rFfwLoG avJULLL25juA7cbZKOO11fMoRp0wPJM= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1673446130; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=NL+HnkITOgHJ0AagPsed/d+7cGSBCRxbVWfXMOm+fYo=; b=sYumW9XkOeV39MmAc6c+Rm/ccS/3ilVLvqmKKkg/QJsvUuZ2bVCAnHXhzt61dnKcBRjBCd MTLQiqJjGXNxWnAA== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id B83A41358A; Wed, 11 Jan 2023 14:08:50 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id GEfSLPLCvmNxBQAAMHmgww (envelope-from ); Wed, 11 Jan 2023 14:08:50 +0000 Date: Wed, 11 Jan 2023 15:08:50 +0100 From: Daniel Wagner To: James Smart Cc: Dick Kennedy , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] lpfc: Handle gracefully failed FLOGI attempts in devloss callback Message-ID: <20230111140850.cww4xgq5vtvrt6kx@carbon.lan> References: <20230111113841.108588-1-dwagner@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230111113841.108588-1-dwagner@suse.de> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 11, 2023 at 12:38:41PM +0100, Daniel Wagner wrote: > When FLOGI attempts fail, the vport can be released via > lpfc_nlp_release() function. This function will set the pointer to NULL > and the node state to NLP_STE_FREED_NODE. Though it wont stop the > devloss timer in the upper SCSI layer. > > Hence when the devloss timer eventually fires, > lpfc_dev_loss_tmo_callbk() is called and it tries to operate on vport > NULL pointer. > > Just do nothing in this case. To be extra cautions also check for the > state and issue a warning if we have an inconsistency. Ignore this one. Just saw the proper fix: https://git.kernel.org/pub/scm/linux/kernel/git/mkp/scsi.git/commit/?id=97f256913c5d