Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp323082pxj; Fri, 7 May 2021 09:22:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxg+LlFfKgKVS3TIDHYev6xG36/HhtnUJGfZ4IElEfc3MDhAce0YTvT6qc/hxZI1+Ydge3s X-Received: by 2002:a05:6a00:1a12:b029:291:ced4:c38b with SMTP id g18-20020a056a001a12b0290291ced4c38bmr10949119pfv.79.1620404544913; Fri, 07 May 2021 09:22:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620404544; cv=none; d=google.com; s=arc-20160816; b=y3B7BIj2971AGcyrzWKekmS7fBtK69osVAmfZfFf6sfFxTQfy23LyYcG+Jre8HzLi5 Jjdc0w4JTT7r5oV2MoJwphfIttq7RWqifWLf2iV20dkcJLX8Cl09Aij93u2+ON8nSx7v Y00nlr/Bm7lyD813pGivgzNRDveNQVRd7/A7FD5fEdALXaXazC4mwna8SYpnoQ5ce9nl Yhh/rx8RIEoM3uLh9Z0HyNcHbnbyO/a/ErCMdcUekivNOdpkkDormYdcY8/XNr6ZiT0/ S/ZwXfN6Ib2X4maXIZM51ub3tvVXaoKJtLWqA57hMc9Ohi7lX2rKqfCFldFKuNm70pl8 TnNg== 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 :message-id:date:subject:cc:to:from; bh=Y22lWMQug4zkFyKMlnWzJSR0510mc8ISumNXtXM5uiU=; b=G4tzZSF1qYn29tVRxrpkssqAjxklvoR1kNscjLjhSg5R5r24uAW67cf/PJ3P3qc7w2 B2YMCPrnHdXiaTKwDqoMwgJaLp/xThTc8bTpvKDCV7ibFsQgAi1AHUN5irZnS3EndrCE 71ia359DXLnm8DPXJNLmwBB1FYFYa3OrdLeDpdkoBNHJ1qvPMeCobCOzL8LHUl5cA9A7 a9nofPN1nwsY6jM1p8t3mkvChi6FN0t8N31mi9/HXv4livujuIozBGtpgbxkUwC1v4aA VvT7T5KDpVRHb6cXeMbD4+6vLkg0C2hJRytyUrqv8Oc/DmyLieJfy3QiukD5/+4taF9o iH/w== 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 b8si7396532pls.174.2021.05.07.09.22.08; Fri, 07 May 2021 09:22:24 -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 S236719AbhEGMcG (ORCPT + 99 others); Fri, 7 May 2021 08:32:06 -0400 Received: from mx2.suse.de ([195.135.220.15]:46840 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233468AbhEGMcF (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 6B08FB17F; 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:00 +0200 Message-Id: <20210507123103.10265-1-dwagner@suse.de> X-Mailer: git-send-email 2.29.2 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