Message ID | 20170421175842.9208-1-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 A240B6038D for <patchwork-linux-block@patchwork.kernel.org>; Fri, 21 Apr 2017 18:36:40 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 97CC82862B for <patchwork-linux-block@patchwork.kernel.org>; Fri, 21 Apr 2017 18:36:40 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 8C3EB28654; Fri, 21 Apr 2017 18:36:40 +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 E9C5628652 for <patchwork-linux-block@patchwork.kernel.org>; Fri, 21 Apr 2017 18:36:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1040173AbdDUSgi (ORCPT <rfc822;patchwork-linux-block@patchwork.kernel.org>); Fri, 21 Apr 2017 14:36:38 -0400 Received: from esa3.hgst.iphmx.com ([216.71.153.141]:35013 "EHLO esa3.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1036878AbdDUSf4 (ORCPT <rfc822;linux-block@vger.kernel.org>); Fri, 21 Apr 2017 14:35:56 -0400 X-IronPort-AV: E=Sophos;i="5.37,230,1488816000"; d="scan'208";a="12158685" Received: from mail-sn1nam02lp0018.outbound.protection.outlook.com (HELO NAM02-SN1-obe.outbound.protection.outlook.com) ([216.32.180.18]) by ob1.hgst.iphmx.com with ESMTP; 22 Apr 2017 01:58:51 +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=JRN3a7c9dwZ+UhNT95tagg0Yo5FrrwvErpNj5fjT4PI=; b=E2L+bRLLLaVRoC1p0XvnvWSt88g4w0dBHYcGmLmTxvvsiTphQ/SnyOqDGOXH4IxlGyGgayC/IPYoONIW4+d9WbqSnB+jn1e3UPxCVZGTF2cS/BBMtDuSgOn+RcCNcqJbWq1jfYA2aTh2lG4t8P5eKxf50DVc5UshvRv8JHHzvt0= Received: from DM2PR04CA024.namprd04.prod.outlook.com (10.141.154.142) by BLUPR04MB402.namprd04.prod.outlook.com (10.141.26.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1034.10; Fri, 21 Apr 2017 17:58:48 +0000 Received: from CO1NAM04FT047.eop-NAM04.prod.protection.outlook.com (2a01:111:f400:7e4d::200) by DM2PR04CA024.outlook.office365.com (2a01:111:e400:243c::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1047.13 via Frontend Transport; Fri, 21 Apr 2017 17:58:48 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.21) smtp.mailfrom=sandisk.com; fb.com; dkim=none (message not signed) header.d=none;fb.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 CO1NAM04FT047.mail.protection.outlook.com (10.152.90.126) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1047.9 via Frontend Transport; Fri, 21 Apr 2017 17:58:47 +0000 Received: from MILHUBIP04.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 BD.27.29323.5584AF85; Fri, 21 Apr 2017 10:58:46 -0700 (PDT) Received: from milsmgip12.sandisk.com (10.177.9.6) by MILHUBIP04.sdcorp.global.sandisk.com (10.177.9.97) with Microsoft SMTP Server id 14.3.319.2; Fri, 21 Apr 2017 10:58:45 -0700 X-AuditID: 0ac94369-1d7ff7000000728b-21-58fa4855df06 Received: from exp-402881.sdcorp.global.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id E1.40.18148.3584AF85; Fri, 21 Apr 2017 10:58:45 -0700 (PDT) From: Bart Van Assche <bart.vanassche@sandisk.com> To: Jens Axboe <axboe@kernel.dk> CC: <linux-block@vger.kernel.org>, Bart Van Assche <bart.vanassche@sandisk.com>, Omar Sandoval <osandov@fb.com> Subject: [PATCH] blk-mq: Fix preempt count imbalance Date: Fri, 21 Apr 2017 10:58:42 -0700 Message-ID: <20170421175842.9208-1-bart.vanassche@sandisk.com> X-Mailer: git-send-email 2.12.2 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFtrALMWRmVeSWpSXmKPExsXCddJ5kW6Yx68Ig7n91har7/azWey9pW1x +N5VFgdmj4nN79g9Lp8t9fi8SS6AOYrLJiU1J7MstUjfLoEro/HnAcaChdwV67p7mRsYD3N2 MXJySAiYSNyYuIsRxBYSWMokMfVLehcjF5C9jVHi/fUlLF2MHGBFvxviIeIbGSXufDsD1sAm YCTx7f1MFhBbREBBouf3SjaQemaBQonZiwJAwsJArXe2toGVsAioSqw/dJ8JxOYVsJP4t/4C E8QN8hJnt+xkBpkvIXCbRWL2qkPsEEWCEidnPgFrZhaQkDj44gUzxKHqEieXzGeawCgwC0nZ LCRlCxiZVjGK5WbmFOempxYYmuoVJ+alZBZn6yXn525ihIRj5g7Gu0+8DzEKcDAq8fCuYPkV IcSaWFZcmXuIUYKDWUmE11sfKMSbklhZlVqUH19UmpNafIhRmoNFSZz3nMzUCCGB9MSS1OzU 1ILUIpgsEwenVAOjALPDqqnqtR1X+JXmXAhNve15TY6Lj+/1wh3vFibaOjTO2/0yxaflSUnM edep3KV3Nb31qk+wJGncUNJhnyfb0+7yz5XZ+hZz3j69u9PnKLj9/Hjq3F+t14Gn3eqX8QRb J/rcu8ZyRiLlgeyOjUlr1MWEJlUsNU0Rmp18qs/Q3m3eAbVA2cNKLMUZiYZazEXFiQBko6zb QwIAAA== X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpkkuLIzCtJLcpLzFFi42Lh2sjJphvq8SvC4O5FYYvVd/vZLA7+bGO0 2HtL2+LwvassDiweE5vfsXtcPlvqMW3NeSaPz5vkAliiuGxSUnMyy1KL9O0SuDIafx5gLFjI XbGuu5e5gfEwZxcjB4eEgInE74b4LkYuDiGB9YwS73qfsHcxcnKwCRhJfHs/kwXEFhFQkOj5 vZINxGYWKJRoetvNDGILA/Xe2doGVsMioCqx/tB9JhCbV8BOYvvR12D1EgLyEme37GSewMi5 gJFhFaNYbmZOcW56ZoGhkV5xYl5KZnG2XnJ+7iZGiCejdjBen2h+iJGJg1OqgdFAerP3ZoV7 z1wKllk/fnvg77qPS6/M2qU3abcMe1ef5w159g+bjV87MhTqCZX8WXfmu6lSQbUFg8t0gUq9 z7wCKlGnX25a/n4+29HeiD3XVZbLFG3fIGy+8hDbxSKF9wvtr7NMDzoaeZu3pO7hHOGtO66l MG5eUzLvQvALCfcmtbxLkQkt9+qVWIozEg21mIuKEwG1E9v6lAEAAA== 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)(39860400002)(39840400002)(39400400002)(39850400002)(39410400002)(2980300002)(438002)(199003)(189002)(9170700003)(50986999)(5890100001)(50466002)(54906002)(77096006)(86362001)(48376002)(5660300001)(5003940100001)(33646002)(1076002)(305945005)(36756003)(189998001)(356003)(38730400002)(6666003)(47776003)(4326008)(53936002)(106466001)(110136004)(6916009)(2906002)(50226002)(8676002)(81166006)(8936002); DIR:OUT; SFP:1102; SCL:1; SRVR:BLUPR04MB402; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CO1NAM04FT047; 1:rFCd/qqsIsrrIG3pYUdv2pHQhM2J9qaFXQvtnkhfZ3N5FzReGC63Gx8y+Jg9vwn9EbfOZNRVbOdo/A+jXWXwEMYMpI+CGohcH16qhVMy3YBw7wWmSO/u1wEG4YCcgcqPFiWSc9uRG3smj+y8txiuuCzfoDHVcWFhzClGaKubFmPycDyCR+xdObXT+tPIaq0qOpvl73FN75ePpiUcizl+W4jbtTguRg0izicFQs/ununpUECWn+2uR7gXCr4GG4RFAZdCb7xOCcPe/pDgHPnLPTj2gNXAu6HevZZJaWjh53ByV9AdqTX8J+09LMkXR+abdmlR31Gz9G3AVWBkVVGip+XJlGg6NhpQ7s07g0iIj+9EbEn8SGCESb3yTPPAmML2bbfLpb0t+xYl64cPVyYZL90wXzbTh/3pSWCceVS9jTCM+Yll2HH4dv/zjWD3RoHS0k79UyQWTBVSkS6x8uSYsBSIJnYJBGnGquhUyBhYbptO/f2fILOorSfnSMIagyTakatUCZyOL8u3XUyEhPznyMQGU3Famup1vWqASZhWXtA= X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f9b90324-422e-4d98-b9d9-08d488e00f44 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002)(2017030254075)(201703131423075)(201703031133081); SRVR:BLUPR04MB402; X-Microsoft-Exchange-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noNiQh3pbXScnTz4x1hvbYiEj50ixFE0mnM2YKXcrLN2uRqrHUKBTu0Ld3SD4XtVQkhn/9I7T3hNR292KNaR1DWe0682zbpezBjWxhL30Yo6oZpRB5N7uDsLDpPdGRPGLp3T6r9FBVF8ejHh8gZPIz7krPOwUyCBw505gG8iSM88Ujz5hIvFmRRTxJrSUG6NHAjpP6P4xSeQz2ZDFm8IRvFuFJKy0Fnv9cTywqEhWRzaOnQEasHzfgme8DiyspXJ8Abc6r27bqkQXzbHvs= WDCIPOUTBOUND: EOP-TRUE X-Microsoft-Exchange-Diagnostics: 1; BLUPR04MB402; 20:D6o/U4thMpFFzw9RYLU97Qq44fGjVVKZoGvo4oBGfmeTIqRprgt5L06MdQwK6vjJSZSoin55+3euCsBKByHu+MRDhmjzlscritg+RUyJUqDboePs//ZAS4NtxcS8CA64NurXtr8JCHQxBYhvk151sMch4yLOzaUYZTp1gUvYlwaP457q2Jr8EBob2M7bAqE8pDRe3Hn2mm3/xIKGcKMFIs+PX7ceyLb0IDlgNoq6t8AuAUpdvTeT8ACuMLre0KO441rAC6JwJ7JlizXiEuAvfgrUtoTSv4o29PGoFKGZRZEAZOZxcjLslhMAp5ePZyxjIm9hRvF8uV+GvkyEANiFbRBU9dJF5CL35KnZ1LUg6WCFAxmbB4RY+V8SM6Thw3X2doWyNUY5NMstsYfn5HmMIpWQn/HjhDlpsZe2FWfxZKfWBJy0dkAPum8EgXyjC0GDUzJ1qj3i0hIhfcnPCa7PKpvPwz2uelRuXMjTs7/LrLJ4gvf3TRlGz6HeZvKxAact X-Microsoft-Antispam-PRVS: <BLUPR04MB402285702AE1E55338F3F4A811A0@BLUPR04MB402.namprd04.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(67672495146484)(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(5005006)(13016025)(13018025)(93006095)(93004095)(10201501046)(3002001)(6055026)(6041248)(20161123555025)(20161123560025)(20161123564025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(6072148); SRVR:BLUPR04MB402; BCL:0; PCL:0; RULEID:; SRVR:BLUPR04MB402; X-Microsoft-Exchange-Diagnostics: 1; BLUPR04MB402; 4:hjfIftsJy0wEIv8f5GUaR+SJ5vW6gq6bb6/3SocVY+urQsdpgkhl4l5Y+mpYorwOiu46TXWDHmAPIvYRVd60sU1avPpd0O8H8azddn2RXS6AQXMGDTp8E+D/7y2FRqt1Xkw4YyPlwkChR0Nu30HwCYmoPBgWwMa7Gy9XUcfMKfwgWkn5i0xcQ+SqdtdJEBrLZwvfVuXyXzt1IZq57SXL9HGSBAWzHQJyX8p8tAjL0mQnpE/fO/dbO847ZBCXDkE52bP0kk1HWIzGJUD3thIyeVWI6ikot9h7H2L2R2U3efA8JfhM7TMg87n7VycvTE2IZFl00lGOgrOHU6K3Au/i0ZTutwoAQUeWzjEaVEnkT/WOFHh9X1dEkXU9dB9PEqACr3/qgN8JNI6WyG1gvGcUbaNjhCVToJbsYKExLI/GmDscc3chDvsHgve2mYeOCcDyvTNGEtXLk7x4SeNemsvpwynQAo4aoSpBlWKTNVajtSYYV1V+IzmZ8pZ48SX1WUPEHN9jsyctOKXAnm+vXVIFZr4BNHPHkw0vBF8pas6NHj64dKcv4AriDxmpDvierHOjlw0DZ2bPncMkKUsjkxr5avYR9I0FkuBZFkD6RDtOqxAZXAcN5YQ3tmCM6Q5c/+ReKWxsrfMLwZREZFmUw4hy64eBGEPAkBUjt6bnVcO78hGEMKTJWdPBqYWLKGJm1azeQk4Q5AtJKBiXu7sU5/EpHPhwTfYM5+qosTWXCKGUSUWn6Q73OO9WHa1C/KO5lHYIaesJCgjck3zAnlvxpeceVB2kTnVkp9FuCdjwzeXyC0pe5OgMpP6VDWBMkjpoTgDdyJrVz+zvsV1LUNosvtC2qLYw2X1FtHJhssCVs6QdkTo= X-Forefront-PRVS: 02843AA9E0 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; B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FGa8Lq/AazA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR04MB402; 7:dOxePT1tf1oBhcDP/8NXBxnph/4nE62RdYbic2W9VNhsEnWC/mEUZJ0ErPxaViFh5CNPOjJgJ2XUSq4+XL0TNTzRHvHl7fHYN1LkokFVkUraJxyphraTnHWVR36ErkUgneKmZ0k3oYkW4xc+frWeGEy0SurdEyWZqRffBddmJTW33KtULfCRppAwEGwoHtSj5GN16f3PRpjjFSC7IxdKu3Phi59UmFopan9n2ZDa3GPT/O7baJg4ooGKm0TM6kUF7ZvJI7RyyaV24SI9y2v2an9K62EaZmzoD5vMZk1EepFf6eSHk5EXfYZ0RuXvfvY4tLpo+IBOO9Q4m1rYJbV/5w==; 20:Bif+2U4FK0TX2qfYPpXt0RAOvWT+ryhnLQfYzIaCmz8qK9ditAqtwIeHcyPdZYZudACW/JtQcuGE5qy79yx1dm/9qqMPmPxgGr5+Te5SmGdLaAIVlRzyVD/6VYE3QlhyVQ8hIOufNZjlsZ//jv4NYQgliU4aa9bn9KRdj052Qdc= X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Apr 2017 17:58:47.2234 (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: BLUPR04MB402 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 |
diff --git a/block/blk-mq.c b/block/blk-mq.c index 4130c7730d6d..f5d24a94ae68 100644 --- a/block/blk-mq.c +++ b/block/blk-mq.c @@ -1631,6 +1631,8 @@ static blk_qc_t blk_mq_make_request(struct request_queue *q, struct bio *bio) } else if (!blk_mq_merge_queue_io(data.hctx, data.ctx, rq, bio)) { blk_mq_put_ctx(data.ctx); blk_mq_run_hw_queue(data.hctx, true); + } else { + blk_mq_put_ctx(data.ctx); } return cookie;
Avoid that the following kernel bug gets triggered: BUG: sleeping function called from invalid context at ./include/linux/buffer_head.h:349 in_atomic(): 1, irqs_disabled(): 0, pid: 8019, name: find CPU: 10 PID: 8019 Comm: find Tainted: G W I 4.11.0-rc4-dbg+ #2 Call Trace: dump_stack+0x68/0x93 ___might_sleep+0x16e/0x230 __might_sleep+0x4a/0x80 __ext4_get_inode_loc+0x1e0/0x4e0 ext4_iget+0x70/0xbc0 ext4_iget_normal+0x2f/0x40 ext4_lookup+0xb6/0x1f0 lookup_slow+0x104/0x1e0 walk_component+0x19a/0x330 path_lookupat+0x4b/0x100 filename_lookup+0x9a/0x110 user_path_at_empty+0x36/0x40 vfs_statx+0x67/0xc0 SYSC_newfstatat+0x20/0x40 SyS_newfstatat+0xe/0x10 entry_SYSCALL_64_fastpath+0x18/0xad Fixes: b00c53e8f411 ("blk-mq: fix schedule-while-atomic with scheduler attached") Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Cc: Omar Sandoval <osandov@fb.com> --- block/blk-mq.c | 2 ++ 1 file changed, 2 insertions(+)