Message ID | 20170407181654.27836-6-bart.vanassche@sandisk.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-block-owner@kernel.org> 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 3DAC060364 for <patchwork-linux-block@patchwork.kernel.org>; Fri, 7 Apr 2017 18:17:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3567028634 for <patchwork-linux-block@patchwork.kernel.org>; Fri, 7 Apr 2017 18:17:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 29D0C28639; Fri, 7 Apr 2017 18:17:15 +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 8FB3628634 for <patchwork-linux-block@patchwork.kernel.org>; Fri, 7 Apr 2017 18:17:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755484AbdDGSRN (ORCPT <rfc822;patchwork-linux-block@patchwork.kernel.org>); Fri, 7 Apr 2017 14:17:13 -0400 Received: from esa5.hgst.iphmx.com ([216.71.153.144]:9329 "EHLO esa5.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755774AbdDGSRK (ORCPT <rfc822; linux-block@vger.kernel.org>); Fri, 7 Apr 2017 14:17:10 -0400 X-IronPort-AV: E=Sophos;i="5.37,167,1488816000"; d="scan'208";a="8943521" Received: from mail-bn3nam01lp0182.outbound.protection.outlook.com (HELO NAM01-BN3-obe.outbound.protection.outlook.com) ([216.32.180.182]) by ob1.hgst.iphmx.com with ESMTP; 08 Apr 2017 02:17:08 +0800 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sharedspace.onmicrosoft.com; s=selector1-sharedspace-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=HUEDhiRmeEUCgz3worRajY1Ok1CHvPXdvsSJwfUvwno=; b=n/Ijz2FKaSAbrRhV3344QMdZF2+q8hKAlNw8Jjfohm+/fOS46mYMSkK8y1H2TUQz8qlebZtPOEbdhlAPLXozNrKOhq2lkcutGjmGmaHpeVXujooQZNAHufuvyP1NBfZG6ZVOgfMccUTNB7a/sUXTjCfF7GDaT+ZHwae53gXThOw= Received: from CO2PR04CA0006.namprd04.prod.outlook.com (10.166.88.16) by BN1PR04MB106.namprd04.prod.outlook.com (10.255.199.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17; Fri, 7 Apr 2017 18:17:06 +0000 Received: from BN3NAM04FT048.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4e::202) by CO2PR04CA0006.outlook.office365.com (2603:10b6:102:1::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.17 via Frontend Transport; Fri, 7 Apr 2017 18:17:06 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; microsoft.com; dkim=none (message not signed) header.d=none;microsoft.com; dmarc=bestguesspass action=none header.from=sandisk.com; Received-SPF: Pass (protection.outlook.com: domain of sandisk.com designates 63.163.107.21 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.21; helo=milsmgep15.sandisk.com; Received: from milsmgep15.sandisk.com (63.163.107.21) by BN3NAM04FT048.mail.protection.outlook.com (10.152.92.210) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1019.14 via Frontend Transport; Fri, 7 Apr 2017 18:17:03 +0000 Received: from MILHUBIP03.sdcorp.global.sandisk.com (Unknown_Domain [10.201.67.162]) (using TLS with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by (Symantec Messaging Gateway) with SMTP id EF.5C.29323.D97D7E85; Fri, 7 Apr 2017 11:17:01 -0700 (PDT) Received: from milsmgip11.sandisk.com (10.177.9.6) by MILHUBIP03.sdcorp.global.sandisk.com (10.177.9.96) with Microsoft SMTP Server id 14.3.319.2; Fri, 7 Apr 2017 11:16:57 -0700 X-AuditID: 0ac94369-548749800000728b-b3-58e7d79d55cd Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 08.62.11415.997D7E85; Fri, 7 Apr 2017 11:16:57 -0700 (PDT) From: Bart Van Assche <bart.vanassche@sandisk.com> To: Jens Axboe <axboe@kernel.dk> CC: <linux-block@vger.kernel.org>, <linux-scsi@vger.kernel.org>, "Bart Van Assche" <bart.vanassche@sandisk.com>, "Martin K . Petersen" <martin.petersen@oracle.com>, James Bottomley <James.Bottomley@HansenPartnership.com>, Christoph Hellwig <hch@lst.de>, Hannes Reinecke <hare@suse.de>, Sagi Grimberg <sagi@grimberg.me>, Long Li <longli@microsoft.com>, "K . Y . Srinivasan" <kys@microsoft.com> Subject: [PATCH v4 5/6] scsi: Avoid that SCSI queues get stuck Date: Fri, 7 Apr 2017 11:16:53 -0700 Message-ID: <20170407181654.27836-6-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170407181654.27836-1-bart.vanassche@sandisk.com> References: <20170407181654.27836-1-bart.vanassche@sandisk.com> X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmphkeLIzCtJLcpLzFFi42LhOum8SHfu9ecRBis6TSxW3+1ns9izaBKT xcrVR5ksNvZzWDxZvZXdYu8tbYvu6zvYLI5fO8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mM4HYvAL2EttPz2GB2CAv sWjTDCCbg4NTwEGiuUURJCwEVLJ/01GWCYzcCxgZVjGK5WbmFOemZxYYGuoVJ+alZBZn6yXn 525ihIRb5A7GpxPNDzEycXBKNTCGvo7N/1x2rLL76uvpvJ8n1rafF/J5FG6wqTDW/LTXrW0c jbsDV/m+fK631pDDr8yqpui8SmH3TJmJBzoT3h6+9ujpzZnblrA3XV1nvF+qelVm3BWTQofD V2o/3vjn5WR9vKvVbkp+itvcuEyGM1Wnb/6fbhBzTWMyF1PxhnmP2JykDc4d6L+sxFKckWio xVxUnAgAA2R6rOcBAAA= MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.21; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(39450400003)(39840400002)(39860400002)(39850400002)(39410400002)(39400400002)(2980300002)(438002)(9170700003)(47776003)(8666007)(50226002)(6916009)(2950100002)(48376002)(5660300001)(4326008)(8936002)(76176999)(5003940100001)(36756003)(77096006)(189998001)(50986999)(50466002)(106466001)(53936002)(38730400002)(110136004)(7416002)(305945005)(356003)(6666003)(86362001)(33646002)(2906002)(8676002)(1076002)(81166006); DIR:OUT; SFP:1102; SCL:1; SRVR:BN1PR04MB106; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN3NAM04FT048; 1:KTIQXQ2VjOmVLW1lHR+AP4EqUmoStuL0bqbgK5qGVJahdOO9l2KOMrAv7SuVT9qyGFfDXJ7ofV4PN/ZalAbzFun8nicbVfpk0kARtXAa/SCHVkyEKj0oBduQ14pI2UPTxAYAorLZ/Lq/ikDz4WvWKlYOmffq3C7KjaX8mOKiOZrLYU4lnh5Bv1KXYRp3Y0D6JJ3ZWdkTivKDmmpZcu/jbK9JiwFU2HL+Xs3V4awM+zHAmX7PutFkbn/Rpqx2b4tkpZYW0LRB8cTz7qGsd1DiF+9XufUNeDcn11O48dMf7H3vJquMRh7JIH5aJr8pAwETro9ufF4ZX8fCPjOTWS88ua5Pb26M9HmAPTusYWguzdpfUDdba0/SZY35JDK9iO/MpKPw7oq2k24cykwFOWbR6thLZDwQSJ/fNHbfAO3uS/kf7iPEgOTutx33loAO5D+pBAFU/P3ufCP1hGxK4nvzs7WMaNGzfoEUxmEPD5W5f3li9qTRP7cRku5yEkUxDhy0gmzserLhPhye7jZiluOjvj1lIRujXihb7vgCwKaDTTY= X-MS-Office365-Filtering-Correlation-Id: 6b52af6f-5c2e-4ece-8616-08d47de24bf3 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:BN1PR04MB106; X-Microsoft-Exchange-Diagnostics: 1; BN1PR04MB106; 3:71Vwx3cqvbu4nZiobpyjFmmFeSTHGUjPesEBkonTLQubTBIXbT80FLfVHgeoFiM+RjYZSHLZqN9+gnp8stg9D4tmwZx77GvnyAzT6RuLwyb9z2Fz0Z3Hwg65m26ZUhhr+5z3oi4gYR4JdflPJ+5AJNh2UP2X4woAXDwEzRKYqRy4f5zTvfY/iTNwlpaDlpB1RkWfQFJVJFbhBNy1Vpk9jpcqt0+QYIovSiihck3BQwSPplQJ2qQE433CenAlc3/vI8MWaioHtDMcQSv3rAmbICi+pOR/202Ef9wrG2+2/EtLJ5E/2LMaH+oImKxVc3bKvtcWdFekAkquX/IMIxWDRm52aqKSgRRelJNMubKu02bMAT02sqMpBiKN8AP5AkJyj3UpC+2Va84u14qpsVIB4wY2dk+jhT3tDcIinQJLg+mDkcDmvBBJoZAmB5bEvj5kgW1DscWvQqfYRUUECuSY8afxJ4tymc1V3x4acIERxaUfghCpUYFuWIsXbySxNu/mCt5WYYaH7p70FwUQfaBm9g== X-Microsoft-Exchange-Diagnostics: 1; BN1PR04MB106; 25:YTZj2c8LOACXlyDjB+lUkPSSZ2QkTRB9L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Z1U+GVUtpOwvI1bfPDCmjJUdzbmFLbZi1tPAZhQrM1Hoh3HS9ZSIcvjL5sM0jG1xMDV9OG5M2DoJUAW5ohZIgHnQMrb+QMI7ozKLCtwdALTedYQTXqYUNtxJFWClaHTCYfQIQ1ckWMpqkBcGtaooayk9nvZ+g7QzXACdWVEOonMYVtR4CXXnMAzuXtmHgfcQp4IodKYgyILJre2c5CubZAFTOb6fp0FWSgqGH2geuF20Mc0gJUb9cl X-Microsoft-Antispam-PRVS: <BN1PR04MB106D37C1441B71D445EC04C810C0@BN1PR04MB106.namprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(146099531331640)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(5005006)(8121501046)(13016025)(13018025)(93006095)(93004095)(10201501046)(3002001)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(20161123555025)(20161123562025)(20161123560025)(20161123564025)(6072148); SRVR:BN1PR04MB106; BCL:0; PCL:0; RULEID:; SRVR:BN1PR04MB106; X-Microsoft-Exchange-Diagnostics: 1; BN1PR04MB106; 4:nNHi+xKADxjosg/6BRXWvDr1ZIT8fTI0M9WqroTxB6jSJVSaWed0sdUzFmhj8UH4iBqnEUFca1uCfDTqzAAqOTWNxE5juE3PRq1X1m8kdhSJd8zAODlTSiwckbaSsc6wy8S2xGfHV2wBJ7TGBq3OMyJF1zfKtypsvt9JyQLgavdYVDOg29LC7bfNovpzj1z1Sb63pFY+lBcOJX1cWVDNQcj6DQt0BvUGeA8oBZOCMbPlCqB0uYOJ0+QKVs3K/dLJQwQcEn/gr7BqEluKa3iPiRODHQzh4At+NavYnS1uaDxe7Xbz6mn1oU8x+s+TWs0Xl4D7syQa24L+B0BlKd6j04RanVUAY+Vk6THkZCTuwpA3+ZXTnQkzRpNZ8HCEhrFtIRrigyXFVK4wj1a9KCDXvy8jTFWIMqy5KY01NloPgmS8lcwfS3jboJHGK3SRChKChsX+TgdXAcXPN2BgLRSMuGUAQPZxo/DE1fsm14niLw9otAPP0IBXdoBcjCaQW+i+hNRo4wfWsaG5Fwvbzx01JaGbS3xRDtOdnlApoUUrZCC1FwMszMYn1YN6j1j1HxlRznBBENScVuA/90NkunKMB8w+ME+J9PmhYbjqtMU0Ma6Nsti3FJcYkm7YOOEC0VDU7N0xMlrF2PqBcCtQvlaYy6qeBGOGeYcSsPRvG8cnRZ0dqBEsznWFJ4sjcV7t6dXGyw2NhgfbCW+a3uLOVJuJ1qfaPZjIlsKb+Qpcvi2kix5Q5xd69yjF0yTz3PnYm89STIfgAvF0A2SCHdtyZGvrHQjqvMOL60aFj50JKRkwCfunTtMs6rsRt6E1XZ6VayYkDaneU9lzqjHCF2111QV99h7vwVqGAu3Ff6Bb5dvxY4s= X-Forefront-PRVS: 0270ED2845 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR04MB106; 23:AXBLhlhIRMjaIAOdIGehS8ynuydgc9Y/X8lV1yKlU1?= =?us-ascii?Q?x+CY0kTax4/MY+07nMw28a0phjCW+DtkvVj4nSMslWsis9SyZVmJe9We75sd?= =?us-ascii?Q?HcWSImxtzWjQ8vhpunXp2bVJKOr5yyMoiBKE77QKlrbV3VKvcrFxnOkY93hk?= =?us-ascii?Q?8/8H/Y0vqB13HoDrols/zVloYSeRGvemQ4qOXJW/zdIL0VdHPW4JVXqAvreW?= =?us-ascii?Q?iu6Q4KD1JNtEUvuyzuYSUlYM6TKqUpcticvrbsopalxYEubC2BoBmnGcu8Gu?= =?us-ascii?Q?UJVqTqzDL8k7vWFEyBO9RVGY8HosCz4v9TCOQRgPcuLhfi3pfHj8nrB8tx7y?= =?us-ascii?Q?raSvTbwsOuOIIlVjD9YlLCTggRGeenV29RyEknByytClVpB2jy0esxZEWHbc?= =?us-ascii?Q?7erTBTysR6g5j/JVR+TYmpMMM3yPZNsc8G2zD3cWCX+CcvSdCs80ZQS608hq?= =?us-ascii?Q?vl1E2CaAxKWGxCyWANE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Uu0MvLh84f5oFk9H5JJN0Fmq4C1XgsYDaX42nXO4FKIx58mwAWL65HSC1wC9gdzoYYBGtK1LztW8bEMznDTiz6eUZ6E596FOuTcE2BxIPrjywyVvDWLS0wjE1kEOC2VJTDyh8V0Ys=; 5:Upv7kZbKEAg/CMi+QJ5fiRqWTJXTsUnb+4VM64RiEwTwMOoManDYgLWrDiAIKk5JwatQ57fxE4FgNpvJEOp33F1GpO5yIYr2spnpQJqgUtXVXE7l5X7trbWuSINPjP7Y1tSK5H8ICcbmeQPfw1YUqg==; 24:34gdd3wPuUG1LznKqNCzp4y01Gg8bHnSpl4FLV//oT2r913RInsHcZG60wYuYNlRDuxz8llN3ToJa6z7SK8MLgVXRbwH7P2WOZ8UL6fBls8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN1PR04MB106; 7:q4auqZl+muL8bIr0+5X1Hs2mo4w/7Gj5S83C0LDA56v5pxujUFpt2fJ+jdIAS6nyDhiXYTiNi5NXhE/PNkZN1EZ8GCzFEYCRAG++3dZIkIena2riFqPCj0bV32nyaOtZiT9vhBY/5lb8yclYmD4Ey1/CZhBbmZQ0BQTXyQEOtZFpEnRfXysJ9OW8eDcShpW3J1kq06VMjn66WcLkxocouweWnBQH9TyKvIEQ3qbZssXAlY2tUtS3DfFaicrd7tVww2tEszXDpo6jBOk6sKBqbfzslkrf6JNn9DUM2XccYLG213PG3qd1mS/+5ZlhelGRGPWOYO9KDuodKMBrSOrXBw==; 20:LMuyFBqoeChkHuCr6EIznCjApNrqN3/WfyYdFiB1EWNfx6KoA/zIxqrYXs/jGD0XJoWlYimOYWSWywRAxNTEzcwHFdgsx2t6USrkV4sWGFfaQqiytGNvkLEBCL52PbC2dZi1Zcz9BMxqq6bPzw0OV04GEPMc7wviHqxmsv1llx4= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Apr 2017 18:17:03.5476 (UTC) X-MS-Exchange-CrossTenant-Id: b61c8803-16f3-4c35-9b17-6f65f441df86 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=b61c8803-16f3-4c35-9b17-6f65f441df86; Ip=[63.163.107.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN1PR04MB106 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: <linux-block.vger.kernel.org> X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Looks good,
Reviewed-by: Christoph Hellwig <hch@lst.de>
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index 11972d1075f1..7bc4513bf4e4 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c @@ -496,7 +496,7 @@ static void scsi_run_queue(struct request_queue *q) scsi_starved_list_run(sdev->host); if (q->mq_ops) - blk_mq_start_stopped_hw_queues(q, false); + blk_mq_run_hw_queues(q, false); else blk_run_queue(q); } @@ -667,7 +667,7 @@ static bool scsi_end_request(struct request *req, int error, !list_empty(&sdev->host->starved_list)) kblockd_schedule_work(&sdev->requeue_work); else - blk_mq_start_stopped_hw_queues(q, true); + blk_mq_run_hw_queues(q, true); } else { unsigned long flags; @@ -1974,7 +1974,7 @@ static int scsi_queue_rq(struct blk_mq_hw_ctx *hctx, case BLK_MQ_RQ_QUEUE_BUSY: if (atomic_read(&sdev->device_busy) == 0 && !scsi_device_blocked(sdev)) - blk_mq_delay_queue(hctx, SCSI_QUEUE_DELAY); + blk_mq_delay_run_hw_queue(hctx, SCSI_QUEUE_DELAY); break; case BLK_MQ_RQ_QUEUE_ERROR: /*
If a .queue_rq() function returns BLK_MQ_RQ_QUEUE_BUSY then the block driver that implements that function is responsible for rerunning the hardware queue once requests can be queued again successfully. commit 52d7f1b5c2f3 ("blk-mq: Avoid that requeueing starts stopped queues") removed the blk_mq_stop_hw_queue() call from scsi_queue_rq() for the BLK_MQ_RQ_QUEUE_BUSY case. Hence change all calls to functions that are intended to rerun a busy queue such that these examine all hardware queues instead of only stopped queues. Since no other functions than scsi_internal_device_block() and scsi_internal_device_unblock() should ever stop or restart a SCSI queue, change the blk_mq_delay_queue() call into a blk_mq_delay_run_hw_queue() call. Fixes: commit 52d7f1b5c2f3 ("blk-mq: Avoid that requeueing starts stopped queues") Fixes: commit 7e79dadce222 ("blk-mq: stop hardware queue in blk_mq_delay_queue()") Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Cc: Martin K. Petersen <martin.petersen@oracle.com> Cc: James Bottomley <James.Bottomley@HansenPartnership.com> Cc: Christoph Hellwig <hch@lst.de> Cc: Hannes Reinecke <hare@suse.de> Cc: Sagi Grimberg <sagi@grimberg.me> Cc: Long Li <longli@microsoft.com> Cc: K. Y. Srinivasan <kys@microsoft.com> --- drivers/scsi/scsi_lib.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)