Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp332060pxj; Fri, 7 May 2021 09:34:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxLIshefI3MGrvfTrMDv7ys+VuSV5Pz98udNcC3UXBsBxCO6zN1aIWe0ICcyXmQng9Qa5nF X-Received: by 2002:a50:cd57:: with SMTP id d23mr12163757edj.5.1620405295576; Fri, 07 May 2021 09:34:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620405295; cv=none; d=google.com; s=arc-20160816; b=NLQWgM2W/V0h25E5qxJKlsQi50PFY2X7fBk62nNZTxNYTWjwhXNLUqLmCFLgwio3H+ ufP5J1JqP95ZzpxGRoRVpXFIRJgmx5Wg0+srnM8Pn6BMmiGz1vCuld+Oy3WLDRZwkQW9 +d8XQM8kfxZ0avS7NVmlE+e8UubPULkZbSrx1uIZGyrOjNLJz1ry8DfSdGNCukwBuZ1k KO1nxgdOHrxfffonlQzErS8JSPjqdxyCRH5kzfj/UCxXbRXsG3dumFKtkhRsGPscCSr8 OjqaSkNO08uYfeZ5rWPzNVHNE0HFjuPbpD2AFUcVxZL8aex8Cc0ygXn1oRrH5iVuAGWX yGBw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Y22lWMQug4zkFyKMlnWzJSR0510mc8ISumNXtXM5uiU=; b=yABBxwA376i5VAQNuY4+QRjHCBQ6dSsDAOJPxqDVQ2VpvraPDA9Yda27fD4vU0cPYf iRWncUaUAFwAE2kn5Ur/mMvzfUrzOvEX+9zTFeNUBYIRksLzTnCGpSpaLfRk8pCXJB3L 2t5l3eBVeUhhG6mLD37IdmeXtgGFitCx68HMxN6mNytfJHZ2LSdEk/a1XUAu42fDwbTj gxjKeawreB0YFamI2WTFW2/N5SZOJZjA2yOtRyVJva22MNXOMnUbMmnAgabiHPpClTa6 1CRmqQf+XskOZE6w+/UlbAysWgKkX0m0kuyDMX6IaWO/KEY2pqaGU5NOwIad/Su0zluV EGIw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 24si4977517edw.560.2021.05.07.09.34.30; Fri, 07 May 2021 09:34:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236791AbhEGMcJ (ORCPT + 99 others); Fri, 7 May 2021 08:32:09 -0400 Received: from mx2.suse.de ([195.135.220.15]:46848 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236688AbhEGMcF (ORCPT ); Fri, 7 May 2021 08:32:05 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 6E24DB181; Fri, 7 May 2021 12:31:04 +0000 (UTC) From: Daniel Wagner To: linux-scsi@vger.kernel.org Cc: GR-QLogic-Storage-Upstream@marvell.com, linux-kernel@vger.kernel.org, Nilesh Javali , Arun Easi , Daniel Wagner Subject: [RFC 0/2] Serialize timeout handling and done callback. Date: Fri, 7 May 2021 14:31:01 +0200 Message-Id: <20210507123103.10265-2-dwagner@suse.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210507123103.10265-1-dwagner@suse.de> References: <20210507123103.10265-1-dwagner@suse.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, We got a customer report where qla2xxx was crashing only if the kernel was booting and ql2xextended_error_logging was set. Loading the module with the log option didn't trigger the crash. After starring for a long time at the crash report I figured the problem might be a race between the timeout handler and done callback. I've come up with these patches here but unfortunatly, our customer is not able to reproduce the problem in the lab anymore (it was caused by a hardware issue which got fixed). So for these patches I don't have any feedback. Maybe they make sense to add the driver even if I don't have prove it really address the mentioned bug hence this is marked as RFC. Thanks, Daniel Daniel Wagner (2): qla2xxx: Refactor asynchronous command initialization qla2xxx: Do not free resource to early in qla24xx_async_gpsc_sp_done() drivers/scsi/qla2xxx/qla_def.h | 5 ++ drivers/scsi/qla2xxx/qla_gbl.h | 4 +- drivers/scsi/qla2xxx/qla_gs.c | 86 ++++++++++------------------- drivers/scsi/qla2xxx/qla_init.c | 91 +++++++++++++------------------ drivers/scsi/qla2xxx/qla_iocb.c | 54 +++++++++++++----- drivers/scsi/qla2xxx/qla_mbx.c | 11 ++-- drivers/scsi/qla2xxx/qla_mid.c | 5 +- drivers/scsi/qla2xxx/qla_mr.c | 7 +-- drivers/scsi/qla2xxx/qla_target.c | 6 +- 9 files changed, 127 insertions(+), 142 deletions(-) -- 2.29.2