From patchwork Wed Feb 5 21:44:19 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Wilck X-Patchwork-Id: 11367245 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 3BE1F924 for ; Wed, 5 Feb 2020 21:43:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 239242082E for ; Wed, 5 Feb 2020 21:43:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727237AbgBEVnY (ORCPT ); Wed, 5 Feb 2020 16:43:24 -0500 Received: from mx2.suse.de ([195.135.220.15]:52402 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727165AbgBEVnY (ORCPT ); Wed, 5 Feb 2020 16:43:24 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id B7937AB3D; Wed, 5 Feb 2020 21:43:22 +0000 (UTC) From: mwilck@suse.com To: "Martin K. Petersen" , Himanshu Madhani , Quinn Tran , Roman Bolshakov , Hannes Reinecke Cc: Bart Van Assche , Martin Wilck , Daniel Wagner , James Bottomley , linux-scsi@vger.kernel.org Subject: [PATCH v2 0/3] scsi: qla2xxx: fixes for driver unloading Date: Wed, 5 Feb 2020 22:44:19 +0100 Message-Id: <20200205214422.3657-1-mwilck@suse.com> X-Mailer: git-send-email 2.25.0 MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org From: Martin Wilck Hello Martin, Himanshu, all, here is v2 of the little series I first submitted on Nov 29, 2019. Changes wrt v2: - Added patch 3 to set the UNLOADING flag before waiting for sessions to end (Roman) - Use test_and_set_bit() for UNLOADING (Hannes) Martin Wilck (3): scsi: qla2xxx: avoid sending mailbox commands if firmware is stopped scsi: qla2xxx: don't shut down firmware before closing sessions scsi: qla2xxx: set UNLOADING before waiting for session deletion drivers/scsi/qla2xxx/qla_mbx.c | 3 +++ drivers/scsi/qla2xxx/qla_os.c | 39 +++++++++++++++++----------------- 2 files changed, 22 insertions(+), 20 deletions(-)