From patchwork Wed Jan 24 22:49:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael Kelley (EOSG)" X-Patchwork-Id: 10183233 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1436560233 for ; Wed, 24 Jan 2018 22:50:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id ED7E62877B for ; Wed, 24 Jan 2018 22:50:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DFB6C287B2; Wed, 24 Jan 2018 22:50:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 80C9C2877B for ; Wed, 24 Jan 2018 22:50:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932952AbeAXWuA (ORCPT ); Wed, 24 Jan 2018 17:50:00 -0500 Received: from mail-bn3nam01on0092.outbound.protection.outlook.com ([104.47.33.92]:26803 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932845AbeAXWt7 (ORCPT ); Wed, 24 Jan 2018 17:49:59 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=geSL8G1EggGieBqBFHT5ZXjoV9iNN6eRqTDvK25dgiM=; b=h7gwzwzaml69YDhsAGnGUST8H8GA4s0jib46v2jucgXhvAh2WZWPBYUwBd+PNfkTO23Uw8jzhw+oq87eaPOwZ0QbcZ15c0MZOMwK4zaE6IA17m0lDjBJRknW0cL1KzRKel4OKuyCXn7JycIlJpuVJ6+kIGSwOAZnKtXQeCYtvzo= Received: from DM5PR2101MB1030.namprd21.prod.outlook.com (52.132.128.11) by DM5PR2101MB1077.namprd21.prod.outlook.com (52.132.130.11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.464.1; Wed, 24 Jan 2018 22:49:57 +0000 Received: from DM5PR2101MB1030.namprd21.prod.outlook.com ([fe80::d5db:a805:a24c:d4bc]) by DM5PR2101MB1030.namprd21.prod.outlook.com ([fe80::d5db:a805:a24c:d4bc%3]) with mapi id 15.20.0464.006; Wed, 24 Jan 2018 22:49:57 +0000 From: "Michael Kelley (EOSG)" To: KY Srinivasan , Stephen Hemminger , "martin.petersen@oracle.com" , Long Li , "jejb@linux.vnet.ibm.com" , "devel@linuxdriverproject.org" , "linux-kernel@vger.kernel.org" , "linux-scsi@vger.kernel.org" CC: "Michael Kelley (EOSG)" Subject: [PATCH 1/1] scsi: storvsc: Increase cmd_per_lun for higher speed devices Thread-Topic: [PATCH 1/1] scsi: storvsc: Increase cmd_per_lun for higher speed devices Thread-Index: AQHTlWWojcBZAOPPnEOXMIrtBDDiUQ== Date: Wed, 24 Jan 2018 22:49:57 +0000 Message-ID: <1516834132-26273-1-git-send-email-mikelley@ntdev.microsoft.com> Reply-To: "Michael Kelley (EOSG)" Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-mailer: git-send-email 1.8.3.1 x-originating-ip: [52.168.54.252] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DM5PR2101MB1077; 7:P0+0781JwEmlGlarHVsSQYPsgZjxwws4yK3O4bfc3gR7Q6U8CFXOUVo/W+/xU/XpQb6jBKKJBszx6zY1ma3KK22iMOvo7y1IPlc947HHaQTqI4koa238cffTlf+40hnpnC4wBQ1Hfo/SYqyQLA7MNHZ/P+9k1UEZFjcZhdBnM3ZIlRFfGn7utio3iKt2IyYptyFtWO9Dy63gInveX1le8FLY9ERb1bP2exkNtbkbUCiQKRX2D+DO9Bc7Jf4QnUqe x-ms-exchange-antispam-srfa-diagnostics: SSOS;SSOR; x-ms-office365-filtering-correlation-id: 9b63b6bb-65b6-413d-e6a9-08d5637ccad9 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(3008032)(48565401081)(2017052603307)(7193020); SRVR:DM5PR2101MB1077; x-ms-traffictypediagnostic: DM5PR2101MB1077: x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(28532068793085)(89211679590171); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(61425038)(6040501)(2401047)(8121501046)(5005006)(3002001)(3231046)(2400081)(944501161)(10201501046)(93006095)(93001095)(6055026)(61426038)(61427038)(6041288)(20161123562045)(20161123564045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011); SRVR:DM5PR2101MB1077; BCL:0; PCL:0; RULEID:; SRVR:DM5PR2101MB1077; x-forefront-prvs: 056297E276 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(39860400002)(376002)(366004)(346002)(396003)(39380400002)(189003)(199004)(2906002)(1511001)(14454004)(102836004)(5660300001)(72206003)(6346003)(53936002)(6436002)(6512007)(2900100001)(105586002)(68736007)(2501003)(43066004)(106356001)(4720700003)(478600001)(59450400001)(6486002)(6506007)(66066001)(3280700002)(3450700001)(316002)(97736004)(10290500003)(99286004)(5250100002)(25786009)(110136005)(8936002)(22452003)(26005)(81156014)(4326008)(81166006)(3846002)(305945005)(3660700001)(7736002)(2201001)(86612001)(107886003)(8676002)(86362001)(10090500001)(50226002)(6116002); DIR:OUT; SFP:1102; SCL:1; SRVR:DM5PR2101MB1077; H:DM5PR2101MB1030.namprd21.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: microsoft.com does not designate permitted sender hosts) authentication-results: spf=none (sender IP is ) smtp.mailfrom=Michael.H.Kelley@microsoft.com; x-microsoft-antispam-message-info: 3zEmpvz/eMRHP8f5I716dpbe6z+IgEHthBMrUkoIQXb4aE/JcVaVat3sfYq2pz2Pn8UMDFVFAFlqM17lp7uJnw== spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM MIME-Version: 1.0 X-OriginatorOrg: microsoft.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9b63b6bb-65b6-413d-e6a9-08d5637ccad9 X-MS-Exchange-CrossTenant-originalarrivaltime: 24 Jan 2018 22:49:57.1354 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM5PR2101MB1077 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Increase cmd_per_lun to allow more I/Os in progress per device, particularly for NVMe's. The Hyper-V host side can handle the higher count with no issues. Signed-off-by: Michael Kelley Reviewed-by: K. Y. Srinivasan Acked-by: K. Y. Srinivasan --- drivers/scsi/storvsc_drv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c index f3264c4..6205107 100644 --- a/drivers/scsi/storvsc_drv.c +++ b/drivers/scsi/storvsc_drv.c @@ -1657,7 +1657,7 @@ static int storvsc_queuecommand(struct Scsi_Host *host, struct scsi_cmnd *scmnd) .eh_timed_out = storvsc_eh_timed_out, .slave_alloc = storvsc_device_alloc, .slave_configure = storvsc_device_configure, - .cmd_per_lun = 255, + .cmd_per_lun = 2048, .this_id = -1, .use_clustering = ENABLE_CLUSTERING, /* Make sure we dont get a sg segment crosses a page boundary */