Received: by 2002:a05:6a10:1a4d:0:0:0:0 with SMTP id nk13csp5997266pxb; Mon, 14 Feb 2022 12:43:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJy1ozVbaEfh/NSrbL6SSAy3TY4A45O0SZ8tkhrrs2IPBy+HwVfawofENfwaqChokOlr+6Ro X-Received: by 2002:a62:7ed1:: with SMTP id z200mr479561pfc.76.1644871418389; Mon, 14 Feb 2022 12:43:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1644871418; cv=none; d=google.com; s=arc-20160816; b=pf3yxVSyeaxwtopEZNqGAt6uBY/TDVzIkKlJ4/rVMX7Q9sjFCM/wdIwGxuhYKvB6Py Bwqd7B7rDljWDRCDjH7b36eeHmx2uliTwZrpKhbuiDhMU/ksmvmzn4/3QlEohIIEgGPh C6y9lGyihGIcb4LHWE01/x6CexSgNOOPK5dFla6Kk/dpiGaf2DRWjgjYLs1uQiq28VPL O4V3wDMDRaM+dm4A/2TUUXHfjg5/k/lRodSaB2nfQsoLKmCRKNvMwtWtFTrfGSjsUjFa ZvCJWuw9N0nVBrDV0GPsBITtXlmK+cyRzlr7rY04TFi18QFoGRZmxm20ISdbeobzerRF 6aAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=U8S8hTBTxu7RPmMjdP1mnu/TEHmMWQv8OZ0UJapzbx0=; b=fph7mEsNkky704GR6DZUWzoJVF63++DEbTjj7uSyPSVhZR6uecRcr+sTAZF6vqyCbJ yAg+w02vHOGLo7cW63hPxrbsayYZDrDJ8DBD54BoVjOwlKnoLePbvEslm2Pm5x9hxdnc OV8I07pXSEHKsrHAMqHdsCkoxxduLu2peemukLlkV4gb6g3nMd8awNuOfKQIek/JRtPJ ViLd55Gm6AUK9+A4JlYuFKoy6UYNaHMkg7Fuv7THxKAC7TR1x6tZZSHlGGRpOWwT2gdW NBwyMo6XK02xoY8SJloAfrN82WfSQ5+OvUqvcgkcD+tZbhmJMTv/84EEsoYnjjuC44RP lZ0A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JnTI9M6p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id h186si728210pgc.30.2022.02.14.12.43.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Feb 2022 12:43:38 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=JnTI9M6p; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 9D0321617D5; Mon, 14 Feb 2022 12:11:17 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245502AbiBNJtH (ORCPT + 99 others); Mon, 14 Feb 2022 04:49:07 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:44180 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1343535AbiBNJqK (ORCPT ); Mon, 14 Feb 2022 04:46:10 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 91A3F723E5; Mon, 14 Feb 2022 01:39:41 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 40F93B80DC8; Mon, 14 Feb 2022 09:39:40 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 644CCC340F1; Mon, 14 Feb 2022 09:39:38 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1644831579; bh=TRFBcUmD+/fMCpqp1LjLmGh5ka5mob0Re1r1Yisk//o=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JnTI9M6pvSQuQn+cGaDByxzNMoOIJwUJZfXEy4zLw7O/mM1eFy9VOB0sEEHEiQ03C kG1+/Vo695JGyIRuI8cI8mRCqF5yegF8dnYXAscOGxFO3QJliFdLTbK4COn+PpOUpa D8t4OcuzzXvIXKMuVnukYbAdv7V44iVmDGaZR4vw= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Saurav Kashyap , Nilesh Javali , "Martin K. Petersen" , Sasha Levin Subject: [PATCH 5.10 027/116] scsi: qedf: Add stag_work to all the vports Date: Mon, 14 Feb 2022 10:25:26 +0100 Message-Id: <20220214092459.618040631@linuxfoundation.org> X-Mailer: git-send-email 2.35.1 In-Reply-To: <20220214092458.668376521@linuxfoundation.org> References: <20220214092458.668376521@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no 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 From: Saurav Kashyap [ Upstream commit b70a99fd13282d7885f69bf1372e28b7506a1613 ] Call trace seen when creating NPIV ports, only 32 out of 64 show online. stag work was not initialized for vport, hence initialize the stag work. WARNING: CPU: 8 PID: 645 at kernel/workqueue.c:1635 __queue_delayed_work+0x68/0x80 CPU: 8 PID: 645 Comm: kworker/8:1 Kdump: loaded Tainted: G IOE --------- -- 4.18.0-348.el8.x86_64 #1 Hardware name: Dell Inc. PowerEdge MX740c/0177V9, BIOS 2.12.2 07/09/2021 Workqueue: events fc_lport_timeout [libfc] RIP: 0010:__queue_delayed_work+0x68/0x80 Code: 89 b2 88 00 00 00 44 89 82 90 00 00 00 48 01 c8 48 89 42 50 41 81 f8 00 20 00 00 75 1d e9 60 24 07 00 44 89 c7 e9 98 f6 ff ff <0f> 0b eb c5 0f 0b eb a1 0f 0b eb a7 0f 0b eb ac 44 89 c6 e9 40 23 RSP: 0018:ffffae514bc3be40 EFLAGS: 00010006 RAX: ffff8d25d6143750 RBX: 0000000000000202 RCX: 0000000000000002 RDX: ffff8d2e31383748 RSI: ffff8d25c000d600 RDI: ffff8d2e31383788 RBP: ffff8d2e31380de0 R08: 0000000000002000 R09: ffff8d2e31383750 R10: ffffffffc0c957e0 R11: ffff8d2624800000 R12: ffff8d2e31380a58 R13: ffff8d2d915eb000 R14: ffff8d25c499b5c0 R15: ffff8d2e31380e18 FS: 0000000000000000(0000) GS:ffff8d2d1fb00000(0000) knlGS:0000000000000000 CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 CR2: 000055fd0484b8b8 CR3: 00000008ffc10006 CR4: 00000000007706e0 DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000 DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400 PKRU: 55555554 Call Trace: queue_delayed_work_on+0x36/0x40 qedf_elsct_send+0x57/0x60 [qedf] fc_lport_enter_flogi+0x90/0xc0 [libfc] fc_lport_timeout+0xb7/0x140 [libfc] process_one_work+0x1a7/0x360 ? create_worker+0x1a0/0x1a0 worker_thread+0x30/0x390 ? create_worker+0x1a0/0x1a0 kthread+0x116/0x130 ? kthread_flush_work_fn+0x10/0x10 ret_from_fork+0x35/0x40 ---[ end trace 008f00f722f2c2ff ]-- Initialize stag work for all the vports. Link: https://lore.kernel.org/r/20220117135311.6256-2-njavali@marvell.com Signed-off-by: Saurav Kashyap Signed-off-by: Nilesh Javali Signed-off-by: Martin K. Petersen Signed-off-by: Sasha Levin --- drivers/scsi/qedf/qedf_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c index c63dcc39f76c2..e64457f53da86 100644 --- a/drivers/scsi/qedf/qedf_main.c +++ b/drivers/scsi/qedf/qedf_main.c @@ -1859,6 +1859,7 @@ static int qedf_vport_create(struct fc_vport *vport, bool disabled) vport_qedf->cmd_mgr = base_qedf->cmd_mgr; init_completion(&vport_qedf->flogi_compl); INIT_LIST_HEAD(&vport_qedf->fcports); + INIT_DELAYED_WORK(&vport_qedf->stag_work, qedf_stag_change_work); rc = qedf_vport_libfc_config(vport, vn_port); if (rc) { -- 2.34.1