From patchwork Fri Apr 7 18:16:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9670151 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 836D060364 for ; Fri, 7 Apr 2017 18:17:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7BDBC2862A for ; Fri, 7 Apr 2017 18:17:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7064728637; Fri, 7 Apr 2017 18:17:13 +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 4284B2862A for ; Fri, 7 Apr 2017 18:17:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755922AbdDGSRL (ORCPT ); Fri, 7 Apr 2017 14:17:11 -0400 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:12025 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755484AbdDGSRI (ORCPT ); Fri, 7 Apr 2017 14:17:08 -0400 X-IronPort-AV: E=Sophos;i="5.37,167,1488816000"; d="scan'208";a="9359617" Received: from mail-dm3nam03lp0015.outbound.protection.outlook.com (HELO NAM03-DM3-obe.outbound.protection.outlook.com) ([207.46.163.15]) 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=jMI573/NC8OsYH2x2kT0VMDBIbqdBYMvIPw0AfQpqsk=; b=NgvCjcE4Rl+3ODazPjF0oLSb2lS1yAYDI1ufs5hjnyDXEOCntf2dC+BLVL6e87Zp59YDjnHewMMm0O7v+tvaXeytQ930G6FBgVrd7i0YoCfqfUsv0/P9ohkXMGabr/GZ6sbt/4d1eBP0Y9KC4X2lK6GEro9nHgGTVEiBdyD+H48= Received: from BN3PR04CA0019.namprd04.prod.outlook.com (10.166.70.157) by BY2PR04MB111.namprd04.prod.outlook.com (10.242.37.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1005.10; Fri, 7 Apr 2017 18:17:04 +0000 Received: from BN3NAM04FT021.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4e::204) by BN3PR04CA0019.outlook.office365.com (2a01:111:e400:7a4f::29) 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:03 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; redhat.com; dkim=none (message not signed) header.d=none;redhat.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 BN3NAM04FT021.mail.protection.outlook.com (10.152.92.150) 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:02 +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 CF.5C.29323.D97D7E85; Fri, 7 Apr 2017 11:17:01 -0700 (PDT) Received: from milsmgip11.sandisk.com (10.177.8.100) 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-b2-58e7d79d0071 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id 88.62.11415.997D7E85; Fri, 7 Apr 2017 11:16:57 -0700 (PDT) From: Bart Van Assche To: Jens Axboe CC: , , "Bart Van Assche" , Mike Snitzer , Subject: [PATCH v4 6/6] dm rq: Avoid that request processing stalls sporadically Date: Fri, 7 Apr 2017 11:16:54 -0700 Message-ID: <20170407181654.27836-7-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+NgFrrCLMWRmVeSWpSXmKPExsXCddJ5ke7c688jDOb3ylqsvtvPZrH33WxW i723tC26r+9gs2jb+JXRgdXj8tlSj/f7rrJ5fN4kF8AcxWWTkpqTWZZapG+XwJWxdXc/U8Fj jorTd3MaGOewdzFyckgImEgsmn6FtYuRi0NIYCmTxLMHT6Cc7YwSV2bfY4Kpen9rHxNEYiOj xKb1q8Da2QSMJL69n8kCYosIKEj0/F7JBlLELLCaUeLc509gRcICARJtP5qZQWwWARWJ/v7z YFN5BewlLt25BrVBXmLRphlAgzg4OAUcJJpbFEHCQkAl+zcdZQGZKSHQxCqxf9lDRoheQYmT M5+ALWYWkJA4+OIFM0SDusTJJfOZJjAKzUJSNgtJ2QJGplWMYrmZOcW56akFhqZ6xYl5KZnF 2XrJ+bmbGCFhnbmD8e4T70OMAhyMSjy8Ab3PI4RYE8uKK3MPMUpwMCuJ8D6/AhTiTUmsrEot yo8vKs1JLT7EKM3BoiTOe05maoSQQHpiSWp2ampBahFMlomDU6qBMb2W4U/eb/dPTg9V/zRe 8PINOW3Ql3R01eT5B+f/l3dwuS7PwKpRl/Xg9NnldyaUsixpNJx1/tblBJtrzice/Djme/X5 uu1OhtnrF60Uf5AadrGUTSI67OsNl4n7ds77f7AsNfjZ36sZ59ZF+rP+Z/8a8c/O/OAWdUNR uRf/CrpMj4Q71pdN3a3EUpyRaKjFXFScCACCW3dGZwIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFlrAJMWRmVeSWpSXmKPExsXCtZGTTXfm9ecRBo3TZSxW3+1nszj4s43R Yu+72awWe29pW3Rf38Fm0bbxK6MDm8fls6Ue7/ddZfOYtuY8k8fnTXIBLFFcNimpOZllqUX6 dglcGVt39zMVPOaoOH03p4FxDnsXIyeHhICJxPtb+5i6GLk4hATWM0rsu3WcBSTBJmAk8e39 TDBbREBBouf3SjaQImaBlYwSq9vvMIEkhAUCJNp+NDN3MbJzsAioSuyV6mLk4OAVsJdY3c8L MV5eYtGmGSwgYU4BB4nmFkWQsBBQxf5NR1kmMHIvYGRYxSiWm5lTnJueWWBoqFecmJeSWZyt l5yfu4kREgaROxifTjQ/xMjEwSnVwJglyx1iEMRcO3/zt4sVvf+6MxnNonjCHxlUulcs22u+ KWhGWuksZ6UrpVt+qZvduZs4cYOoyr/0i5/f/Lhzfc2UhGULP33Y9lp7j9W/S8WcqtKlHNH1 Lhold/siMiIEfjyMKHm83EnOZeJVnw+m1WUh2Yz8go1C96Q5Hqz8KPR7Ncf2fzpWXEosxRmJ hlrMRcWJALuR0juzAQAA MIME-Version: 1.0 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)(39410400002)(39400400002)(39850400002)(39860400002)(39840400002)(39450400003)(2980300002)(438002)(9170700003)(189998001)(106466001)(36756003)(2906002)(33646002)(86362001)(81166006)(6916009)(6666003)(2950100002)(5660300001)(110136004)(8936002)(305945005)(8676002)(356003)(50226002)(38730400002)(48376002)(53936002)(77096006)(5003940100001)(4326008)(1076002)(50466002)(50986999)(76176999)(47776003); DIR:OUT; SFP:1102; SCL:1; SRVR:BY2PR04MB111; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN3NAM04FT021; 1:Y7LwUBEgFEYrNNAgo/NZI6mZSKDM8dqrtHwdn9JhCkzr+4UIKNKe1WPGUjT0CXd8NyLsTXpNa7m6IbgJIver0CbXj13VOCueIP0XKU3KOFcB4Sr4qBxt7O6BxaB2dUFjKK/3oy9VXr/c21Q84FSXYUCxPzeUJHvNdtvlCvRJbXgPP9WzJj6XAL1rD0ONXaZ2QAA3jMqaIXkj2PoUJnB8IvPSEdE6RebMz5r98lun+jVCg1dnNwCb/TBrdel7Sre/2E+O3IhzxSbmu6SY27A0LESKJr7yW2U7cR+dMWz6iiKlFwmeJqDOeGr5Y2Mfw6U9Mk/w59pSJRDKF8jDGO9+BOYzHe60ex5Jv/OYAdXMz9FpLGj/ios7r1V54XN0I6+U0t9lq8NaNy/VX1IoT4AkJ8zXk6m82iFiFVYhXt+nQ/iDKUkHxJsv/zfBpKpiBWqyXcZSXLPGkWzXCIl7RUaJkkxFt92Gg67LmShBbmGQxRSi5bPaKWuxuy1Yv3pDyp1dt9FeFZjXxiaFH8LNOqe4ex4l8KUDXBP/elQWyNo4MTA= X-MS-Office365-Filtering-Correlation-Id: 12a6797f-2406-40c1-59f9-08d47de24aa7 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:BY2PR04MB111; X-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; 31:aKt46H10ruliKjZAzH4KbCJ2kuCI4gShrxFWA108GV0t3j9YAGXnae60O6KmBzbjXv5D3JmCtcxTuf5fv2v0lIFbOxx+H6mLhnvFAGhdMpTwhuRDJU8SbjKwXDChnUHrUlvHznfGK5EWxSW1g0PMl4tirjp14tSH8fUKmZR0mvZtqnM8S3DrgSUDpSLYv56m/DDA+7ZG+Gt3ryiMX8kKJWjppjZgY94Gb4nN+Rmn0J70VEqerKGOF0fRbA/ToumMyPqyV24Z/gX/Dr1vlc4WmQ== WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB111; 20:/llqzjkAA12StuPMssTYEKmNWZKo1qO2G/6tR+RpgfdGw4QV4Zmn4IhECe35DrLGpYefN8N7kM1U1bGPMZ5568Wm6Fepy4ScoMGHgCiNd+0czZKxA3JOe8XCqyyBZyNOE3383iqYBQ6R4ikRAVM1l3Aprcltud36bVK6OvNbGA/Zveygmp/h9E0adpCFUQz+BeDviC6Sw1H0AQ2gCx6/mjNimEqUtymeVgtymShW5NzT0SgtQxQHo4X6iEmh4dfhYMPm6H7/Qc1YcxJzBXP1f1dqDQO64vpIQhSYwjXduL1aUTK5VobYYGzYDbn0LVERHUjFXqhNM6ne60EyIGGLi8kHN2iGjtSpGSgTUEO3nHKWtWXBuQeslVRinEBQpNx1LpI4TdydiTa90LQUW4nSu+jfOsCYl3v0bhijaPjA3ihw7/2aHgJnGdk+u32fx8WtHJIB28arfovpTpowTbjiUTkQfDjfvuEajxayl8bZreMrEF32yGz1+pakBRCVUw1c X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(13018025)(13016025)(10201501046)(93006095)(93004095)(3002001)(6055026)(6041248)(20161123560025)(20161123562025)(20161123555025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(6072148); SRVR:BY2PR04MB111; BCL:0; PCL:0; RULEID:; SRVR:BY2PR04MB111; X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB111; 4:RpPjw4vphNoiYCPBQTeD7rpXQ1EPPmUnhIji+mjRF7jY5nnDnt4t6tekHhN0cnDAhTyCOmJtbttXkeFOqfGKc5eDB2LBMDKEuZ71hbFmaK0VJFHPG8B7bvK0Ls2zf33G7yfnMlhXdubL3TyrdxF6Fmxqtdrpyt/UEqTCFDhPyqRzr7+jCmHg2c2O09BUInwkVnjtnvGK/MniBBvhtnaoub257cXEp4IJbiOVrZ8T6BRkNBqJEnk7zhdxVTot0PGZI4CaFPmfvJiqTi4hWE44A6+zqhM/D+8m67VnSCB3rAYLzkGT+NeDryhri7kBG7rykap1ZRvZzd/+LV0c35LaZj9hy5N19LZIQGew0YCCKZ818QLQRNuX923h7EvfOhrVfo4ly6TRcJcRhmj8J0eL/S0bcBtdgD0Gbi+E7KxN4gsMHxK10xBS7J2vQTy41+YzTKAjsX2tfxrv25X8mycyVbyElo7RNzUlzXXOhz7xtDOJfA1nOfD2W7pJclzg58ZTSyudElFJvqA0mhqtg7HrhD47lB4zBFb1sUU0y1Zlepd1kTC29U1T7PXGswrtNnRGKM66BxDXS3yDWIk7SfBnwtDSyN43oLO88G96hEesfIm9u6NoFQhL9PI1f9W5sPhZZ4WbHi13c5/bNLZ0QyhPDAx0/EpmNQG3DCYh2VFeqPXfWRhsTdWTvlxkTYdzYRHzWYCkS9aFicknPciIGhjEQZHBjo7LN5/ApNgwg86x7pFPpwlb+NHWSq7Ro69vGFa+1KkzTv0ET1sBDq+tAtMA9B6ND9RhHSQe81V63GpyKlTeZoaK7g9YImeZ5Wy9vzAV X-Forefront-PRVS: 0270ED2845 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR04MB111; 23:tj//C1gSbSZdCDGX4PtdhQv1jbIgPY734bzkQMbnuV?= =?us-ascii?Q?BFLehZbjyG+G/z9EgINyR86BxJXFyZAFR1ciKeDkvvI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R76n8N0Gu0aMyxvGnUG1mP9YlFYUbuZRMrEaF3E0iNVLbnoe1B+GF?= =?us-ascii?Q?8=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB111; 6:iGrew7qjtVrOGj9DfDBJ2mXHOBsvcX5dZzdkBPlCmbCNHN5hPPgORL7Eu+RsljmU6GbRRQaTuc5T1ieRtJOsaKivm1XkVJZ8/yd0VpwEvIFWdipxDV954sQFEkGmCStt+02m83vH9P7QFeaUk2OrtjcccsGwnbTFxQ7fPwilVrRSUXdoPqxu1FiMCbuoXqEvIRxEKt4H2Rff77N2ZshESdjHqYDcoDNGuSGyjEzThLgLs8B1mD4VowG5RODxVudUI0c9P3ECHeUcOUg7yarYIPlpDImOsFkC0FHIHytjMANyFPE5OfmJsDbJURtjJIKkJ/9ri1HF92v96lGisihPGMQpfrg1UZOvuV5hF4K9OSwB++ut8Dlcfi0d72bf9UUW9vmc/vfjqX8OAX4XunGmM5v36yOMqNmST8iSf7aqtBo86+UTY7AO4EBElQRA3IAyzSeIXONghqG1U2eLFJG0iOjVSlZwDmpIGlaekV9ASf0=; 5:+0n3DqZHQ8lmPj8RnpHF0OXCg6zfGPsNL20toUzcvX/t2JpKoOCeknMc+j9We+TyEYCM2i3XapedlFwVUbx4MMRVAJzlsg1KfrVb1RNqlHd/SahLvQCDJThTspllLuzMrEq4qVMIR3uNMBb1LbIxlg==; 24:iVut7OHWDPs37wV34z+tcH9ILNih+j1ndikx8+Z2ab9TTtHvawXJ3hnnyMwb/CR2pc+6qU1FbS9CD4yBmDpv+zOEvWXR2GkXgBxY3trW4TQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR04MB111; 7:l0sVmjUu5JR/3GoZuRaCg8c45yj4dCGa3EJX3AHxxYU48FMjL4c1XNnkVkHs1DrXoTZcg29FoPl6nw9O7CCHXKVPjqSrClnryPHpaLNnmDRA94z+Vo2CeJx19NUXRA8luEcDIp3FJ7ydPMA0J8mP0V1+KNUttMmT2z6TquqNv9Q4frugxGnJp+x0SLV/tMKFhaXnLPKJXqAbvdD5zXVZgemu18nkEZu8CQyjNxwEEx/GlqUqT7ln0Dhx8/Z9Bz85IjDcWdT6FucWsCujxKITiE7RoRrSA2eqBEHv1DDvrENBhdBpwJpwXyYvz2YzpjEP1+baHztIvchdU+kwAcSX6A==; 20:fnaZCXzUrLT6p5hpupeOT7/84Rj5UOYEI3LHkYTNaIzpwR0Xb78DMQ8dWoSmamCC7k5eqOg+s7QW9nmdaoUHUZzFeXCs1vTzVKbMc5VCTbedTlQE1iVfqUaKE3mPliz9ZOfcjS+7QUTcHuPP9pjnRoPWALjepjCvff6GK+zjitU= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Apr 2017 18:17:02.6051 (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: BY2PR04MB111 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP While running the srp-test software I noticed that request processing stalls sporadically at the beginning of a test, namely when mkfs is run against a dm-mpath device. Every time when that happened the following command was sufficient to resume request processing: echo run >/sys/kernel/debug/block/dm-0/state This patch avoids that such request processing stalls occur. The test I ran is as follows: while srp-test/run_tests -d -r 30 -t 02-mq; do :; done Signed-off-by: Bart Van Assche Cc: Mike Snitzer Cc: dm-devel@redhat.com --- drivers/md/dm-rq.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/md/dm-rq.c b/drivers/md/dm-rq.c index 6886bf160fb2..d19af1d21f4c 100644 --- a/drivers/md/dm-rq.c +++ b/drivers/md/dm-rq.c @@ -755,6 +755,7 @@ static int dm_mq_queue_rq(struct blk_mq_hw_ctx *hctx, /* Undo dm_start_request() before requeuing */ rq_end_stats(md, rq); rq_completed(md, rq_data_dir(rq), false); + blk_mq_delay_run_hw_queue(hctx, 100/*ms*/); return BLK_MQ_RQ_QUEUE_BUSY; }