From patchwork Thu Jul 9 12:23:18 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: John Garry X-Patchwork-Id: 235142 Delivered-To: patch@linaro.org Received: by 2002:a92:d244:0:0:0:0:0 with SMTP id v4csp1363907ilg; Thu, 9 Jul 2020 05:27:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx2TPiqcOrrI5gocxe89uURWaZX7IUF8JMLUTi9rSf57nyn7RiJdsytlguUeYT8nCQVPLBH X-Received: by 2002:a17:906:50a:: with SMTP id j10mr43187948eja.113.1594297629158; Thu, 09 Jul 2020 05:27:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594297629; cv=none; d=google.com; s=arc-20160816; b=AVu00YKc5xLEiVd2+83nIlFWWGx74kUSaYjFaKqYxLy9F4HngI4r1YSJauOb0wsrjw uaKmHf3+JnWZIBBTc9IMlcsrsGGBbtr+lJXEf884hRWx0PwtCbXBukGueuJRTMvVpsoF VJEZdnNftpAafp87GiWiP7mSQTqLQJ5b3iEJTWYwylqI8Nrw2ch2tLYkwXDHYNIwsAnl r7pzFeQoE3twUw1+yG+o0iKo8Wxww3emH0Nfcm7CijNfE8oary6FYuW9z8EJlVRWPpUR j6ujn5LAzQL2yQcYLviJVW+KeCutY2STZo9bebUg7efUXcoRXubv3Yn9fNFXRi+lZQI/ GSbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from; bh=C+JpI8+gfD1m/yFLN+dDiunIYQhU3oBthetvBFFGFeg=; b=eRvQNpdgRleIWyjS4OVtV03JSfIQ6npTLTZ13doRIkJNNVF0wJnRcyxiaZ8VDDMdwm ZIIfCi18/HMfkP0w6f/p7vOpH5EHgbLPbze/Ww+unFJh3NpMJwFFbkNfflEYfCcYdl/C mxMKGtKif01jqaS94Opw4ql/ujI0Mg2GNUd1IcSFCG7b2KuEjnEMMOim7R3jSBLS1/JE viRILmzDAThBzTb7yqT0m7S/MoMxO3FdNFMtF+VjmAwWc3gF1lsO4Wi9lapvfwlF9TNf 4jE8iYVasbVtdHD1ehTH6DK0rTUN4YZxvU6etA/l+g8pRyNP0yoXmq+EKMzgOFGLK/iB YYAw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-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 h13si1796491eji.459.2020.07.09.05.27.09 for ; Thu, 09 Jul 2020 05:27:09 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-scsi-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-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727046AbgGIM1I (ORCPT ); Thu, 9 Jul 2020 08:27:08 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:7282 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726615AbgGIM1I (ORCPT ); Thu, 9 Jul 2020 08:27:08 -0400 Received: from DGGEMS403-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 65832114D74646D6D6F1; Thu, 9 Jul 2020 20:27:06 +0800 (CST) Received: from localhost.localdomain (10.69.192.58) by DGGEMS403-HUB.china.huawei.com (10.3.19.203) with Microsoft SMTP Server id 14.3.487.0; Thu, 9 Jul 2020 20:26:58 +0800 From: John Garry To: , CC: , , , , , John Garry Subject: [PATCH v2 0/2] scsi: scsi_debug: Support hostwide tags and a fix Date: Thu, 9 Jul 2020 20:23:18 +0800 Message-ID: <1594297400-24756-1-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 X-Originating-IP: [10.69.192.58] X-CFilter-Loop: Reflected Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org This series includes hostwide tags support, so we can mimic some SCSI HBAs, like megaraid sas or hisi_sas. There is also a fix for an out-of-range module param. Differences to v1: - add Doug's Ack for patch 1/2 - sort params alphabetically - fix max queue at host max queue (when non-zero) - drop host max queue file write permission John Garry (2): scsi: scsi_debug: Add check for sdebug_max_queue during module init scsi: scsi_debug: Support hostwide tags drivers/scsi/scsi_debug.c | 86 +++++++++++++++++++++++++++++++++------ 1 file changed, 74 insertions(+), 12 deletions(-) -- 2.26.2