From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 947C1C2D0B1 for ; Thu, 6 Feb 2020 13:03:25 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5A720217BA for ; Thu, 6 Feb 2020 13:03:25 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727478AbgBFNDZ (ORCPT ); Thu, 6 Feb 2020 08:03:25 -0500 Received: from mx2.suse.de ([195.135.220.15]:58426 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727138AbgBFNDY (ORCPT ); Thu, 6 Feb 2020 08:03: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 D844CB436; Thu, 6 Feb 2020 13:03:22 +0000 (UTC) Date: Thu, 6 Feb 2020 14:03:20 +0100 From: Daniel Wagner To: Martin Wilck Cc: "Martin K. Petersen" , Himanshu Madhani , Quinn Tran , Roman Bolshakov , Hannes Reinecke , Bart Van Assche , James Bottomley , linux-scsi@vger.kernel.org Subject: Re: [PATCH v2 1/3] scsi: qla2xxx: avoid sending mailbox commands if firmware is stopped Message-ID: <20200206130320.lwac7yxan2p34arc@beryllium.lan> References: <20200205214422.3657-1-mwilck@suse.com> <20200205214422.3657-2-mwilck@suse.com> <20200206123330.sq3ubynw534lqrp7@beryllium.lan> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org On Thu, Feb 06, 2020 at 01:50:32PM +0100, Martin Wilck wrote: > On Thu, 2020-02-06 at 13:33 +0100, Daniel Wagner wrote: > > Are you sure you got all the necessary places fixed up? > > > > I tend to say we should add > > > > if (!ha->flags.fw_started) > > return QLA_FUNCTION_FAILED; > > > > do qla2x00_mailbox_command() and handle the errors one by one. Just > > an > > idea. > > I had that idea too. I even tried it out. IIRC it's not that easy. Some > commands need to be sent to the mailbox even in shut-down state > (MBC_EXECUTE_FIRMWARE, for example?). I admit I didn't dare going down > the path you're suggesting, I thought it had quite a potential to cause > regressions. Yes, this certainly causing regressions. This patch is using the blacklist approach which is probably introducing less regression. But I think for finding all the right spots the white listing approach is better. Maybe only during development phase. Just an idea. > Did you mean this as a negative review, or rather an additional > suggestion? This patch clearly improves things. So yes, I approve. Reviewed-by: Daniel Wagner Thanks, Daniel