Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp2876896ybn; Thu, 26 Sep 2019 19:48:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqxCENiGWviqwUpV+XMAUt20srWayDvhp2CQ28S7ontblqgnd+HP5Ntr4kYJJWtc8yprqbym X-Received: by 2002:a17:906:e2d8:: with SMTP id gr24mr5777323ejb.55.1569552495002; Thu, 26 Sep 2019 19:48:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569552494; cv=none; d=google.com; s=arc-20160816; b=YMFr4RQ2IQvGwbV8/VklxlAtkKlF39hthM6T7n18UyUhDzFlsNkHFScJjZsL9ETRq8 7RvnoGsKQLIdESaT+Hr2r57VONeWh//yW7nORDd7hrBgsJyaPx5iNbnW86kUaNwpMLGk PqsdfCj0LHVQv7laTyAaxNxEY8ey8w86DE8f2lDkqugMKhuWeXfEQSOsKvxf1z+SVMCX otwLlz+M3ncToK5SDJgGhN0qHgmztpyptLHgdGiaRuSAUtB4eaBiKNayK7ng0fODRk1e CF9OsYvmHTDACEtOySkFxDfH/DL3DhvaQ7F/uR3jT7ZvDePsHh1umRP7P39Innheh8jW Q5Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:autocrypt:from:references:cc:to:subject; bh=a8QnptXlbNqNWh8h555NDUYz0htmZzCXZ6ahm6pCgL8=; b=IsbbFMYIzqOivOhmp3TdbNUnk1RPW16Gl6gf0Ge35Bj22PC34IjhOzrz65rM+Bq40N nMAxa66l+f90cjZObKM5vfuQEKEpf88ZrI/ngm2stNGByke/ZZ90y86S/R5ZTU84Q3AU Bwu00b8AKYKoKGXv002gA6mZ4uJ5vZ8GEQ2z9/0c//QEHEDDcOcLf3Vb6tGNhBS7+NgD ZFHz2e6ZtblACjiKKnSDMq2xabfO1405QWNALtPkez31zaYJ4WwwBppemls3BiDjaXZU LUvJGJfzDWrb4Nqh6kYCrKvYnE1+l6p89FF4OyMcLj9B7Ct2FSbThbfr/U2wQIfOf/KL LAsA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p38si691794edc.449.2019.09.26.19.47.50; Thu, 26 Sep 2019 19:48:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728691AbfI0Cpx (ORCPT + 99 others); Thu, 26 Sep 2019 22:45:53 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:40499 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727505AbfI0Cpx (ORCPT ); Thu, 26 Sep 2019 22:45:53 -0400 Received: by mail-pf1-f195.google.com with SMTP id x127so646229pfb.7; Thu, 26 Sep 2019 19:45:53 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:autocrypt :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=a8QnptXlbNqNWh8h555NDUYz0htmZzCXZ6ahm6pCgL8=; b=JQg3Fy0x+QaTUWq/mfE4UiLOfvxxS3fer6jWpBVYokE/IBMS1WItLqfB8iJ1E0+dAT S3/6agpqvyODTd1TM660oImFqt4fN1WPvk4ePK4Fs28XmPkj2O9vVDQb3IxjsxTEGeqT W0Jk0EVRIn5/i0d8CHprnZ9OEqBVZi0MgL6ijd8UwLAU+Oh+LMIByxJZRtgINqQMVfSS ZuuIsSQTeU188HT7oT/qIJusV1spI6mMIyLSP1lTF5xjSND6wJlZouOLZpn0UTW+PEoT fR8SkuPAogX7/IpbSLjzIeCp1qLayJf8rSisPRjoPg13ilwX/H6s9tg3Gip+svQ2IxBj LtBg== X-Gm-Message-State: APjAAAUyWUKSZxXXFPE21RGSC8aPjIYYTq+CHKdCB5kE10fJugdQlrmn 5XWR4NdNkDvMG2f78R8wIbODsJtmsaQ= X-Received: by 2002:a63:f5f:: with SMTP id 31mr6672160pgp.265.1569552352089; Thu, 26 Sep 2019 19:45:52 -0700 (PDT) Received: from localhost.localdomain ([2601:647:4000:a9:2083:a241:50c7:8f37]) by smtp.gmail.com with ESMTPSA id a17sm598301pfi.178.2019.09.26.19.45.50 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 Sep 2019 19:45:51 -0700 (PDT) Subject: Re: [PATCH] scsi: qla2xxx: Remove WARN_ON_ONCE in qla2x00_status_cont_entry() To: Daniel Wagner , qla2xxx-upstream@qlogic.com Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org References: <20190926074637.77721-1-dwagner@suse.de> From: Bart Van Assche Autocrypt: addr=bvanassche@acm.org; prefer-encrypt=mutual; keydata= mQENBFSOu4oBCADcRWxVUvkkvRmmwTwIjIJvZOu6wNm+dz5AF4z0FHW2KNZL3oheO3P8UZWr LQOrCfRcK8e/sIs2Y2D3Lg/SL7qqbMehGEYcJptu6mKkywBfoYbtBkVoJ/jQsi2H0vBiiCOy fmxMHIPcYxaJdXxrOG2UO4B60Y/BzE6OrPDT44w4cZA9DH5xialliWU447Bts8TJNa3lZKS1 AvW1ZklbvJfAJJAwzDih35LxU2fcWbmhPa7EO2DCv/LM1B10GBB/oQB5kvlq4aA2PSIWkqz4 3SI5kCPSsygD6wKnbRsvNn2mIACva6VHdm62A7xel5dJRfpQj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np0z3/RDnoVyfmfbbL1DY7zf2hYXLLzsJR mSsED/1nlJ9Oq5fALdNEPgDyPUerqHxcmIub+pF0AzJoYHK5punqpqfGmqPbjxrJLPJfHVKy goMj5DlBMoYqEgpbwdUYkH6QdizJJCur4icy8GUNbisFYABeoJ91pnD4IGei3MTdvINSZI5e Message-ID: <5d5931ef-7ffa-3f3f-bb5e-5379c1716d04@acm.org> Date: Thu, 26 Sep 2019 19:45:50 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.1.0 MIME-Version: 1.0 In-Reply-To: <20190926074637.77721-1-dwagner@suse.de> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2019-09-26 00:46, Daniel Wagner wrote: > Commit 88263208dd23 ("scsi: qla2xxx: Complain if sp->done() is not > called from the completion path") introduced the WARN_ON_ONCE in > qla2x00_status_cont_entry(). The assumption was that there is only one > status continuations element. According to the firmware documentation > it is possible that multiple status continuations are emitted by the > firmware. > > Cc: Bart Van Assche > Signed-off-by: Daniel Wagner > --- > drivers/scsi/qla2xxx/qla_isr.c | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/drivers/scsi/qla2xxx/qla_isr.c b/drivers/scsi/qla2xxx/qla_isr.c > index 4c26630c1c3e..009fd5a33fcd 100644 > --- a/drivers/scsi/qla2xxx/qla_isr.c > +++ b/drivers/scsi/qla2xxx/qla_isr.c > @@ -2837,8 +2837,6 @@ qla2x00_status_cont_entry(struct rsp_que *rsp, sts_cont_entry_t *pkt) > if (sense_len == 0) { > rsp->status_srb = NULL; > sp->done(sp, cp->result); > - } else { > - WARN_ON_ONCE(true); > } > } Should the following be added? Fixes: 88263208dd23 ("scsi: qla2xxx: Complain if sp->done() is not called from the completion path") Anyway: Reviewed-by: Bart Van Assche