Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp1866173ybn; Thu, 26 Sep 2019 03:26:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqycpB2zIpwJq0YiYmDPcAScy6515n1DW6AsRjBOF5X909bkmycJT7Sm2wL6P75zBTeyyUcO X-Received: by 2002:a17:906:cf82:: with SMTP id um2mr2382431ejb.254.1569493596175; Thu, 26 Sep 2019 03:26:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569493596; cv=none; d=google.com; s=arc-20160816; b=qYLj8g55CQNUY85CrmfOhjbLGL+UmaAo5Za8HZ41Li7VkHP3WaxVG4DDN0ZHTAQOJq XtTIzCv+7R2pUZky2Vq6rdmKF8DU6l8TEMwWQX8gApu/aNrfUJdZTQ7UZoVqvn+PvN1O rZ8BjVvvrfAJ2hnYkpdlwgKpX+c9t/GjNQn2X78GLb+y9uinxhZ5me8UmeyGnmipXr2d DitfU6FK4BzyabfgBPnb4ZFJQadNEkHH13j1ry/FRkYYhkOvTImiQfgUpCHR5XB3BD5Y LNr1bqgTkH+Hwgal6wI15YANLXUuA3Ot6H6k2M73EbV7e31O0pYfmluUudAxK8Ab6zkJ p6QQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=TBva6xYQnu0fqnJEZxEu/odk4sKawlYdPZopWCYUE/c=; b=A91ThZqs8x4+IlLCBInuFpfLuPUm2+TN0NNSGVV771gcMzsA0yKW7hPFi/MBpxbHLu jqVYZTI6oDYn7O3YwBIXLXG0C7FnZSAllKSs6ROMdRR6Rjz4sBbzq167ftA7JC1FACK6 z/LevqcX8cWzCqU3IoYmHw7FwiXkq2BSYD10V9pxPZaB2Cv6fJU+DssMDx/Uzxd2fPem kQ/k7XIqvxij6s53TdM0NIjguVhF+a/Z7M02uFbFcSrKgERidZz9TTrsH5q1Ece1nJt/ 5UgDyAU2cwYsZ+r0cwYiJZQo1sRNv6dd5+6SHFQnpqEnIeo1tqShur6CPe3vhalxa+dT XZUw== 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 n6si725331ejj.232.2019.09.26.03.26.12; Thu, 26 Sep 2019 03:26:36 -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 S1729860AbfIZHqm (ORCPT + 99 others); Thu, 26 Sep 2019 03:46:42 -0400 Received: from mx2.suse.de ([195.135.220.15]:39942 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726524AbfIZHqm (ORCPT ); Thu, 26 Sep 2019 03:46:42 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 5056FAF38; Thu, 26 Sep 2019 07:46:40 +0000 (UTC) From: Daniel Wagner To: qla2xxx-upstream@qlogic.com Cc: linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org, Daniel Wagner , Bart Van Assche Subject: [PATCH] scsi: qla2xxx: Remove WARN_ON_ONCE in qla2x00_status_cont_entry() Date: Thu, 26 Sep 2019 09:46:37 +0200 Message-Id: <20190926074637.77721-1-dwagner@suse.de> X-Mailer: git-send-email 2.16.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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); } } -- 2.16.4