From patchwork Fri Oct 20 21:51:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Don Brace X-Patchwork-Id: 10021033 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 7574160234 for ; Fri, 20 Oct 2017 21:52:37 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6568928F67 for ; Fri, 20 Oct 2017 21:52:37 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5A50328F6D; Fri, 20 Oct 2017 21:52:37 +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=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 B7D8528F67 for ; Fri, 20 Oct 2017 21:52:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753536AbdJTVwg (ORCPT ); Fri, 20 Oct 2017 17:52:36 -0400 Received: from mail-co1nam03on0047.outbound.protection.outlook.com ([104.47.40.47]:19424 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753410AbdJTVw3 (ORCPT ); Fri, 20 Oct 2017 17:52:29 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mscc365.onmicrosoft.com; s=selector1-microsemi-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=YXK7IcyEpPErVVzAgN/MVVuFCXaQvsMXYqOrzBzePUA=; b=ZorZqNgfTEl4gzP53SF/DqilHyh0HltibT9Bh/juLtGq1NjvdPFz0Aj9QkTsyHATDWQK2OBG/LNvy+o0x/QHcNjbQ+sZEBl/bZbgPWZTQPqfgQfb1qBDMvSyiANUfDJgyFuS8zP9g/0+N6K3dCsDSKM4fxhovVHzn2+kIi6zL1g= Received: from MWHPR02CA0002.namprd02.prod.outlook.com (2603:10b6:300:4b::12) by BN1PR0201MB0740.namprd02.prod.outlook.com (2a01:111:e400:56::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Fri, 20 Oct 2017 21:52:26 +0000 Received: from BY2FFO11FD048.protection.gbl (2a01:111:f400:7c0c::175) by MWHPR02CA0002.outlook.office365.com (2603:10b6:300:4b::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.77.21 via Frontend Transport; Fri, 20 Oct 2017 21:52:25 +0000 Authentication-Results: spf=pass (sender IP is 208.19.100.21) smtp.mailfrom=microsemi.com; suse.com; dkim=none (message not signed) header.d=none;suse.com; dmarc=bestguesspass action=none header.from=microsemi.com; Received-SPF: Pass (protection.outlook.com: domain of microsemi.com designates 208.19.100.21 as permitted sender) receiver=protection.outlook.com; client-ip=208.19.100.21; helo=avsrvexchhts1.microsemi.net; Received: from avsrvexchhts1.microsemi.net (208.19.100.21) by BY2FFO11FD048.mail.protection.outlook.com (10.1.15.176) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.77.10 via Frontend Transport; Fri, 20 Oct 2017 21:52:25 +0000 Received: from [127.0.1.1] (10.238.32.34) by avsrvexchhts1.microsemi.net (10.100.34.105) with Microsoft SMTP Server id 14.3.361.1; Fri, 20 Oct 2017 14:51:53 -0700 Subject: [PATCH 08/12] hpsa: update queue depth for externals From: Don Brace To: , , , , , , , , , , CC: Date: Fri, 20 Oct 2017 16:51:51 -0500 Message-ID: <150853631117.28275.7043249295857386555.stgit@brunhilda> In-Reply-To: <150853443786.28275.17878578984391668998.stgit@brunhilda> References: <150853443786.28275.17878578984391668998.stgit@brunhilda> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:208.19.100.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916004)(39860400002)(376002)(346002)(2980300002)(438002)(189002)(199003)(16576012)(54356999)(69596002)(50466002)(356003)(478600001)(189998001)(106002)(81156014)(81166006)(83506002)(97736004)(58126008)(2201001)(2950100002)(316002)(110136005)(77096006)(23676002)(8936002)(86362001)(68736007)(50986999)(76176999)(2906002)(8676002)(5660300001)(106466001)(33716001)(4326008)(33646002)(104016004)(230700001)(305945005)(53936002)(103116003)(9686003)(47776003)(921003)(2101003)(83996005)(1121003); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR0201MB0740; H:avsrvexchhts1.microsemi.net; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD048; 1:LJQIBY+yX0J3bVxlIl3jw+ifIeWnlUwwT5uYUkHa1oCxljJtbnSUaFZpLP9Z83NOfO7dZYAyQDB5M8n3mDTUdm1faMKwh/5Z8p69pNb0X+eb4OMoSk5aRIMOFha6Q+b+ X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9bd92121-bf63-4dbe-5ec8-08d51804d9f1 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(4534020)(4602075)(4627075)(201703031133081)(201702281549075)(2017052603199); SRVR:BN1PR0201MB0740; X-Microsoft-Exchange-Diagnostics: 1; BN1PR0201MB0740; 3:86P19fQDUihMfjuLZsgUul5oo1sRVKi1jiitvpD7zwwcIXPemZQxWhW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RXBWGOVCQAsWcnAARTC39uUaiFtFRxljLWFhwu1cRhkgV9tQrqmQWUpCOwnhzZ9ufFSsyT2zZT6awXEXrif7DDrWfr+StpG20fKK8lTJIucAgFyuuzdKQT1NjcKJGlSCgrZdVsAdp6Np43f4XmwdAkt/DTSN5Sj9fDPeFky34odkZqrwuLmO6Q2CAqzQ9Aff/Dl5II4q4Af8GvxpBYoq6to19TXP6ImkjODPk5lyd88vThvBE5k+4Z5Iao9bghXjLjjPF67HqqJ7StftR94zoLcR7Gj80tRhoaTrhf4vHGHCjBOEwi94IYzOB1WCSudt5Sy9JUaTiuM1n/vFRVkZCTaakHCT9TI53p7RHW/7NzcKoZTKFUD36cPXiBmIJCbzh8XUDCSG8FGc31bFtEyH0H9dJnMTml8R4J1Y+lw6+EkXR X-Exchange-Antispam-Report-Test: UriScan:(72170198267865); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(3002001)(3231020)(93006095)(93004095)(10201501046)(6055026)(6041248)(20161123558100)(20161123562025)(20161123560025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN1PR0201MB0740; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN1PR0201MB0740; X-Microsoft-Exchange-Diagnostics: 1; BN1PR0201MB0740; 4:7MF7jPFUJNoDL/JUs1ryeIZN4CuOriAd3oVfAOK7ZgtswRKgEyuaHzFfeOqJYgMMgmu7lEMD/CxjWtkYd+O1jBCOaUuQuQ8kUohlvBBV1kqq6xRcxJEgPDTQn+QxnMBmbFJDIvJ659IfY6JE+x7os3x3UhgaDIWLGzWX8BI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?g=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN1PR0201MB0740; 6:c4Wyjht/D+c6wwlff9+tJRYfSwrMwJZKrqWJKSabVN5/cWyC7hz9aPIXY91D1UkXyyI9zphAZi4LfdqJhATDisM9fisGfkkpH5MAptBi0MevpF//Ty0cZcbdhGWSrmYgyZYYgx7/C7vFCio1vIJli3aGojISWXQd+bd+3yqXiIPPlzNWnBhF3Yywi6OYF7bcq/RBkhbT2SpzjaUO2UnIrFsLZo9w3uxnqgRC+tAlCDuM0hObu3EHEOtPqnaMy35k+HY+IX7eljat7+p8Kk+B76T4ZdLPUBLNUwH/WPDe/Frin/GVCsvBrURKxnKFmfHAc8WIB49mDe9bYhTNp208HA==; 5:+m9iV6wMnYPpflBntrzpaZfaUZqzX5asYsbvI8JYB1QZAd9aWHZbK0hM7n+iz4yD7gfDIP2V2hdWfnI39j4G6r5RilO8Roe6Dn6DG6hwhh6ZaZTqNpAuuoEvFMX0MWbYqAlttoCzJl+bzN1OV+AKrw==; 24:UxciNfFyprnRKZvaMKfUxYxxLv473b0EHFh5/6iGbt85bKTG2nEhyVyHAcNQg3idVgwQNDbcUnb3EheVypyrULjY4d4bnjO0ZWKH0HvuKXQ=; 7:o7nELcfUFPiyodzXaC051Z1REE4btquEk+c+v0klPbCksLUNmDO6/q2wUKe8A2fTL7N6sXZJEzl3YYpKlShm76JnVQP0EctRShA7oh1giKgH7D6wYT8gg1fgPKS75xZsnzDq/51z6Or1bl1vKVPeXNub274ZtywAliz2mL8ahpF8w2MRshiv3DVlxDp/fXRsquZ2UAiNTLVe1hZ2psURGnrqjC49yBVQ9wqk5wJH/5c= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: microsemi.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Oct 2017 21:52:25.5863 (UTC) X-MS-Exchange-CrossTenant-Id: f267a5c8-86d8-4cc9-af71-1fd2c67c8fad X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f267a5c8-86d8-4cc9-af71-1fd2c67c8fad; Ip=[208.19.100.21]; Helo=[avsrvexchhts1.microsemi.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR0201MB0740 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 - preserve external device queue depth during a scan operation. Reviewed-by: Scott Benesh Reviewed-by: Scott Teel Reviewed-by: Kevin Barnett Signed-off-by: Don Brace --- drivers/scsi/hpsa.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/hpsa.c b/drivers/scsi/hpsa.c index 6a998b0..27a1aca 100644 --- a/drivers/scsi/hpsa.c +++ b/drivers/scsi/hpsa.c @@ -1765,8 +1765,12 @@ static void hpsa_figure_phys_disk_ptrs(struct ctlr_info *h, * way too high for partial stripe writes */ logical_drive->queue_depth = qdepth; - else - logical_drive->queue_depth = h->nr_cmds; + else { + if (logical_drive->external) + logical_drive->queue_depth = EXTERNAL_QD; + else + logical_drive->queue_depth = h->nr_cmds; + } } static void hpsa_update_log_drive_phys_drive_ptrs(struct ctlr_info *h,