From patchwork Tue Nov 15 23:35:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bart Van Assche X-Patchwork-Id: 9430689 X-Patchwork-Delegate: snitzer@redhat.com 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 C658060471 for ; Tue, 15 Nov 2016 23:36:45 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B2FB72522B for ; Tue, 15 Nov 2016 23:36:45 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A5C6A28C36; Tue, 15 Nov 2016 23:36:45 +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.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from mx4-phx2.redhat.com (mx4-phx2.redhat.com [209.132.183.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 19D732522B for ; Tue, 15 Nov 2016 23:36:45 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by mx4-phx2.redhat.com (8.13.8/8.13.8) with ESMTP id uAFNZY3n016009; Tue, 15 Nov 2016 18:35:34 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id uAFNZX2n026348 for ; Tue, 15 Nov 2016 18:35:33 -0500 Received: from mx1.redhat.com (ext-mx05.extmail.prod.ext.phx2.redhat.com [10.5.110.29]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id uAFNZXTK004101 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 15 Nov 2016 18:35:33 -0500 Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0042.outbound.protection.outlook.com [104.47.32.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6E527335E97; Tue, 15 Nov 2016 23:35:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sandiskcorp.onmicrosoft.com; s=selector1-sandisk-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=wn5HQD37eNiDWcDuPfkFDaoBeOhlDyTYzUavBIpWcoQ=; b=Q8NztYiGdfqEVH4P5xBeEfMtQqfzJ4XSfDDErAxgmWZWVdAskQqYC6KzeQJZpJeh5PY6QHV9JHeahWGjKXCRQltgHRHF1qx2RZ+cWYj89Ou5QZQtGpbez5uiaN1P5M4YN1axBxfqpjF1UqI7VP9sovzKpaAMlQFdEqC/lvp0bzs= Received: from BY2PR02CA0076.namprd02.prod.outlook.com (10.242.32.34) by CY1PR02MB1756.namprd02.prod.outlook.com (10.162.165.150) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.707.6; Tue, 15 Nov 2016 23:35:28 +0000 Received: from BL2FFO11FD050.protection.gbl (2a01:111:f400:7c09::127) by BY2PR02CA0076.outlook.office365.com (2a01:111:e400:2c2a::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.679.12 via Frontend Transport; Tue, 15 Nov 2016 23:35:27 +0000 Authentication-Results: spf=pass (sender IP is 63.163.107.225) 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.225 as permitted sender) receiver=protection.outlook.com; client-ip=63.163.107.225; helo=milsmgep14.sandisk.com; Received: from milsmgep14.sandisk.com (63.163.107.225) by BL2FFO11FD050.mail.protection.outlook.com (10.173.161.212) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.721.5 via Frontend Transport; Tue, 15 Nov 2016 23:35:26 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:; UpperCasedChecksum:; SizeAsReceived:2892; Count:19 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 BF.93.03811.11A9B285; Tue, 15 Nov 2016 15:28:17 -0800 (PST) Received: from milsmgip12.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; Tue, 15 Nov 2016 15:35:24 -0800 X-AuditID: 0ac94371-a9ee698000000ee3-16-582b9a11523c Received: from exp-402881.sandisk.com ( [10.177.8.100]) by (Symantec Messaging Gateway) with SMTP id E7.A1.03661.BBB9B285; Tue, 15 Nov 2016 15:35:23 -0800 (PST) To: Mike Snitzer References: From: Bart Van Assche Message-ID: <81bc399e-df90-099d-1b25-bdb0fda3f27c@sandisk.com> Date: Tue, 15 Nov 2016 15:35:23 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.4.0 MIME-Version: 1.0 In-Reply-To: X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrNLMWRmVeSWpSXmKPExsXCddJ5ka7gLO0Ig6O/9S32vpvNarFn0SQm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OzEvJLM7WS87P3cQIDjbOqB2M1yeaH2Jk4uCUamCU71it+eCaxP8bFpGRAmlHpkdM +cDHuP3Iqt+FPhysV+Ni5opu2fzIiI+Rc7X0PPtPEiKi2Xo73DvuiguZyHWGrT5U92Df2ryf JZzaWU0W5yauyNHhlGm+lC18vWlD9bNzN3nW/k6fXMpU+5wvTWf1t3lTGPRWiVYI/FWx0Gg2 erBs2WL+E5+VWIozEg21mIuKEwF4xg6/5gEAAA== X-IncomingHeaderCount: 19 X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:63.163.107.225; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(438002)(57704003)(199003)(189002)(230700001)(2270400002)(31696002)(4001350100001)(106466001)(7846002)(86362001)(81156014)(64126003)(97736004)(83506001)(31686004)(8676002)(81166006)(36756003)(65826007)(65956001)(189998001)(69596002)(47776003)(68736007)(53416004)(8936002)(65806001)(356003)(77096005)(92566002)(305945005)(50466002)(2906002)(6916009)(33646002)(87936001)(626004)(110136003)(4326007)(2950100002)(5660300001)(76176999)(23676002)(50986999)(54356999); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR02MB1756; H:milsmgep14.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD050; 1:fRUzCJJ4KoZKlZzy2iRvdw68hNKtpGuedeKdQsT39fZJnIYClNi2R3uOPTeuXA8O+eUU5Rx6sK+QUnTSaGkUPO/683slOKzZxz9sEly7bksxzektElfjYOzlIG5J5WesKYDj4kDJhK2m+bRCW76LC0eOpmA+EN+Bp+Mir5N4b69hz1vR2ziGChNBW94ZF3qLHn2N2Lg5Zxk45RUnW1Hvb7KyZr/rqbgPsx607sanqWar40zXM+zo96hB0LMaZ65rvTBFGTiDyG/fIK2AW9ZtHkCkeYqOzpNPBcjb6h/J3wtlJTW28G8pQHf/g/qk6ao8ZURpx1fTBwwxFvn1G6V0gzX/9QPRRbR3zU5kbS6E3mOg44m8nquTpcXjEGVxxXvmsvUW/9Q11HhtZ5luFtmihXcZ/tPOb2NIgKf6Lxc+t2+jJA4DVpcInbneFNgIb8RMr3rzifXUlLEgnXTXpBHRl20Y5G9L1eUt+IEcKDjfsrcV6/FqJi5F5l3U4ElvOj60 X-Microsoft-Exchange-Diagnostics: 1; CY1PR02MB1756; 2:jYdUqM8BxqsfHqMqYhm4NEijeR/qIJUOyvUmwHCvjRp7b3iLwwpq9cO3tPSwjrwAhTk0nFKxmV0f/Lj/ggsqOc+C34d7DmlrXRYXwYXIQZ7z/y/vORFIlkYGYP7Provh2Ct4U8wQH/qOjNKsnygUylBWnE87FRUGouOconNqr88=; 3:ZLnE4HGULKQ/7VX2hezrCzeMj8MuNGZy5oRxhII72ZK/JF1fTOGFAblBIyN8Y2Hq8Ft/yrE3hDij/HT57lLfRWgpsUsovHVR6fYMIYTilbBffKBW+8Qgq25Qeu/qztuANlKVhpKjI7zSWJaMFLBmE+ZFTp/aoESB/F+huCOfainsZ+el9CAdabxbLs4CpbQRqQYj+tcVWDuGW5HxmO6AmmiwgFcCns5idWLto/GjPaSqRB0eovQlx0obMiL+snXRCa+7ORR331tUl/Zuek2H/zZEXqlKgvZ+9sBSJ0rZC+4= X-MS-Office365-Filtering-Correlation-Id: ee95e84d-d1d9-483b-e41a-08d40db01455 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:CY1PR02MB1756; X-Microsoft-Exchange-Diagnostics: 1; CY1PR02MB1756; 25:i/e9cp86LZgbDoIN6qqDmgKOFsX/eqADV+20DfTwmjLgRTKhASlJT1Uu891AuInQrkBetPn1I1Y45L3icijStrgwDOT7rcyxjSu1Jld/K6CGortydGLlhzX+H+23lrblj44RrTjVFDaYLCN9mS+lkze7yV8Hj/ZF1VOfw1vF4bk+lZ4iDSDQQRiPr1k0DkyZ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71KBu5vQTvVtg9B8L3jGZdED X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(42932892334569); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6060326)(601004)(2401047)(5005006)(8121501046)(13018025)(13016025)(10201501046)(3002001)(6055026)(6061324); SRVR:CY1PR02MB1756; BCL:0; PCL:0; RULEID:; SRVR:CY1PR02MB1756; X-Microsoft-Exchange-Diagnostics: 1; CY1PR02MB1756; 4:QA48HhQ7P4C90iV13Sl6QxJxEP1YMnAqcYiErZZoo02soxkZNcy7Vml4/6TUgaj20bhRpwIgNNWbYyfSoU6h9YoWsAgqWr2tl1yS6dqEDKoQuGw0Dw2ekxijPJCv5GZWouHMS14OMyjCbsZ3nQSSKsGUFieGsURS+38oJGiot0BdpNoPFP6tj522E7cW3WBuF25todGT3bXTrIH5IiMf3ssPTEW0wrYmS+xeoG/+zcGRSEySokWGT3yyumkQHBGbqAnLkPIjmxY4K8J9Ysjb0ojN4jhcckjVITYzY69sMEDkjF3njUU2Cu6YxCP4w6GN/Nz6JSFdhjdl6liOr1MEuHCk+qSs8jifiJ6HLBs6UUOSeJ5yHvhGyW3Ly8UvThZzP/Rlx7POJqN7lybpBjVs7Cf23TX5qulo/CV/bH2LMy3B+hS8Dke0WpHE2Ar5MZDn9RMHEHnZ3GMNeWP4dsC3e8XPJpn9eG1GhrAFLDF4JxhDdCZfIolff3O5QWvIiKAUt9jW+Fh7GVolF0NlD9+kYQ== X-Forefront-PRVS: 012792EC17 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtDWTFQUjAyTUIxNzU2OzIzOitPR3QwY0NHMkFmUXcrT2dRODA4TTdWTnA2?= =?utf-8?B?eFFFeG9PNHpSL000aHV4WVFoUlc5U0Voc1RmWE95dStiTGtUaWZoZXVoeFp6?= =?utf-8?B?c3FBdjEzMXFZQUlqTVN5ZDVBQURJcDlibTBtelV1b3diVldvVUN0MU44d2tj?= =?utf-8?B?cUFialJ2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bK9bMCkt07/gZuheri6e2daGH+fNnNLZHRop3tr9Ogu5FmsDYc4SXTA1YuLa8lRTFd7kg39wqztlcPucbLOSN6y8J5/iugwRpEYWnjP4X/46QBKU95n2/nYVrAw==; 24:2i+H+R0u4Ei9sn1VUoi/RSuF29IpByVldojykOXHTgBCyZpor2ZZsdIeypFhfoY1QgKp/gGq3Wb+5++z+vb2JSwSX7ydhOfqQ5iJaRMruEY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR02MB1756; 7:jtenpCnN+mC3MKtycKxEtnnVEpg7TR4Ii4Riu0TlHW5M2g3u7Kk3t9dRX44AU2WwMUgLJlcKD/ZRKVNl3eAg3Ti40RY0KNJG1tjHT83AyHX1brEJBMz7VLh0dvYKWwvO+NJqwx2+KbTwLRuWz6dN06B3fTPfwLRtxN6xi213TECFg1h+rOAWMXV5PVJ0LnH8iS0LLveJW1PvbkQ9fL5pPtdt1S6d1FP1G6vJJzkAY4z3yDEMc8WTJYeprYNpv24oY7apzBP+UklMvUdqXnxxVSxnAG5udUnBnokNNf9sFbMxtYb87vKnh/T9CFNSfogh8YSTuWPoatBv1UU03UGWts+uMLjBOrcHKF7wm6KRPrE=; 20:2d8MVlQyLrXwM3ePVFPHQFMw9zKZ+LNPsvjB7EolL2pBmloFerEgo0v8dXxLH2IIoiZJWmVqroL3Hw6G1fDCu4FP5dJvAUfu2WRWUzLJKp+mRr5CzuuK2uZH/hIZcNq0X1Bxb0AKGz9d0nY1nzwlCK4bes1MVzCeyEe1leoOfZRZQl9wXzD55uhLRiOS8CpFOqJzjYg/ip63W5aeoXhlvu759IV4PNsoykhlHdugcevzjfSbI3MFAQOdoQYSz7Vj X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Nov 2016 23:35:26.8917 (UTC) X-MS-Exchange-CrossTenant-Id: fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=fcd9ea9c-ae8c-460c-ab3c-3db42d7ac64d; Ip=[63.163.107.225]; Helo=[milsmgep14.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR02MB1756 X-Greylist: Sender passed SPF test, Sender IP whitelisted by DNSRBL, ACL 198 matched, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 15 Nov 2016 23:35:31 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Tue, 15 Nov 2016 23:35:31 +0000 (UTC) for IP:'104.47.32.42' DOMAIN:'mail-sn1nam01on0042.outbound.protection.outlook.com' HELO:'NAM01-SN1-obe.outbound.protection.outlook.com' FROM:'Bart.VanAssche@sandisk.com' RCPT:'' X-RedHat-Spam-Score: 0.668 (BAYES_50, DCC_REPUT_13_19, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS) 104.47.32.42 mail-sn1nam01on0042.outbound.protection.outlook.com 104.47.32.42 mail-sn1nam01on0042.outbound.protection.outlook.com X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-Scanned-By: MIMEDefang 2.78 on 10.5.110.29 X-loop: dm-devel@redhat.com Cc: device-mapper development Subject: [dm-devel] [PATCH 7/7] dm-mpath: Fix a race condition in __multipath_map() X-BeenThere: dm-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: device-mapper development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com X-Virus-Scanned: ClamAV using ClamSMTP If a single-queue dm device is stacked on top of multi-queue block devices and map_tio_request() is called while there are no paths then the request will be prepared for a single-queue path. If a path is added after a request was prepared and before __multipath_map() is called return DM_MAPIO_REQUEUE such that it gets unprepared and reprepared as a blk-mq request. Signed-off-by: Bart Van Assche --- drivers/md/dm-mpath.c | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c index 7559537..6b20349 100644 --- a/drivers/md/dm-mpath.c +++ b/drivers/md/dm-mpath.c @@ -541,6 +541,7 @@ static int __multipath_map(struct dm_target *ti, struct request *clone, size_t nr_bytes = clone ? blk_rq_bytes(clone) : blk_rq_bytes(rq); struct pgpath *pgpath; struct block_device *bdev; + struct request_queue *q; struct dm_mpath_io *mpio; /* Do we need to select a new pgpath? */ @@ -558,6 +559,18 @@ static int __multipath_map(struct dm_target *ti, struct request *clone, return r; } + bdev = pgpath->path.dev->bdev; + q = bdev_get_queue(bdev); + + /* + * When a request is prepared if there are no paths it may happen that + * the request was prepared for a single-queue path and that a + * multiqueue path is added before __multipath_map() is called. If + * that happens requeue to trigger unprepare and reprepare. + */ + if ((clone && q->mq_ops) || (!clone && !q->mq_ops)) + return r; + mpio = set_mpio(m, map_context); if (!mpio) /* ENOMEM, requeue */ @@ -566,22 +579,20 @@ static int __multipath_map(struct dm_target *ti, struct request *clone, mpio->pgpath = pgpath; mpio->nr_bytes = nr_bytes; - bdev = pgpath->path.dev->bdev; - if (clone) { /* * Old request-based interface: allocated clone is passed in. * Used by: .request_fn stacked on .request_fn path(s). */ - clone->q = bdev_get_queue(bdev); + clone->q = q; } else { /* * blk-mq request-based interface; used by both: * .request_fn stacked on blk-mq path(s) and * blk-mq stacked on blk-mq path(s). */ - clone = blk_mq_alloc_request(bdev_get_queue(bdev), - rq_data_dir(rq), BLK_MQ_REQ_NOWAIT); + clone = blk_mq_alloc_request(q, rq_data_dir(rq), + BLK_MQ_REQ_NOWAIT); if (IS_ERR(clone)) { /* EBUSY, ENODEV or EWOULDBLOCK; requeue */ clear_request_fn_mpio(m, map_context);