From patchwork Tue Nov 15 23:33:16 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: 9430677 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 927376047D for ; Tue, 15 Nov 2016 23:34:39 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7D8E228C3C for ; Tue, 15 Nov 2016 23:34:39 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7069328C61; Tue, 15 Nov 2016 23:34:39 +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 CDB4728C3C for ; Tue, 15 Nov 2016 23:34:38 +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 uAFNXLHh015897; Tue, 15 Nov 2016 18:33:22 -0500 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id uAFNXLG0026237 for ; Tue, 15 Nov 2016 18:33:21 -0500 Received: from mx1.redhat.com (ext-mx03.extmail.prod.ext.phx2.redhat.com [10.5.110.27]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id uAFNXLAY017522 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 15 Nov 2016 18:33:21 -0500 Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0048.outbound.protection.outlook.com [104.47.34.48]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6081183F45; Tue, 15 Nov 2016 23:33:20 +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=ce+j9PNXAjAoacCxWylB5HOFsx9Wt+tn5yXLKc1yjqo=; b=iEVcKbjnlPB5hQg9CH/Z/+np3b8IeAP4WF40qORdem2ZB+vPUu+vS4gV29Cvm5h5AHBZstmLBtErAckuJl1OEa8apErwI3qXp5wVUxtTLQ/F9NMYHvSlWXt/IPuCWaw3vi/hIx2ceI3TPVtEe3jKA5nTrMET8+VUYaXSoOj+sow= Received: from BN1PR02CA0051.namprd02.prod.outlook.com (10.141.56.51) by BN6PR02MB2819.namprd02.prod.outlook.com (10.175.96.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.721.10; Tue, 15 Nov 2016 23:33:17 +0000 Received: from BN1AFFO11FD046.protection.gbl (2a01:111:f400:7c10::158) by BN1PR02CA0051.outlook.office365.com (2a01:111:e400:2a::51) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.721.10 via Frontend Transport; Tue, 15 Nov 2016 23:33:17 +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 BN1AFFO11FD046.mail.protection.outlook.com (10.58.53.61) 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:33:17 +0000 X-IncomingTopHeaderMarker: OriginalChecksum:; UpperCasedChecksum:; SizeAsReceived:2881; 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 65.09.02899.8399B285; Tue, 15 Nov 2016 15:24:40 -0800 (PST) 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; Tue, 15 Nov 2016 15:33:16 -0800 X-AuditID: 0ac94369-607ff70000000b53-99-582b99381f93 Received: from exp-402881.sandisk.com ( [10.177.9.6]) by (Symantec Messaging Gateway) with SMTP id E0.09.02804.C3B9B285; Tue, 15 Nov 2016 15:33:16 -0800 (PST) To: Mike Snitzer References: From: Bart Van Assche Message-ID: <4b4da27f-1540-db69-dce7-431b61b164ef@sandisk.com> Date: Tue, 15 Nov 2016 15:33:16 -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+NgFrrNLMWRmVeSWpSXmKPExsXCddJ5ka7FTO0Ig3vXDCz2vpvNarFn0SQm i7aNXxkd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CGhFrmD8elE80OMTBycUg2MgbmTVK72Bv/t8n7F9dLawaa19+ic JguuQzOmng15K/WZm0341PyJbv2vuuYKJPEyhe9ISM7m2hjGyhGpE8Kzan6Aau++0y/vRkW6 P/JPUu7xr/Ny0p8RE2Co+KOIT09a3bXrevfD01/js9ZznoyoFDH6OH1q5JbYe+KlWyO6LbsT 61PmCyuxFGckGmoxFxUnAgA9nsMZ5QEAAA== X-IncomingHeaderCount: 19 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:(10009020)(6009001)(7916002)(2980300002)(438002)(189002)(199003)(36756003)(92566002)(2270400002)(53416004)(87936001)(47776003)(69596002)(65806001)(65956001)(31686004)(7846002)(6916009)(8676002)(33646002)(31696002)(97736004)(50466002)(86362001)(230700001)(81156014)(2950100002)(77096005)(83506001)(106466001)(64126003)(81166006)(305945005)(356003)(68736007)(4326007)(65826007)(8936002)(189998001)(23676002)(4001350100001)(5660300001)(110136003)(2906002)(626004)(76176999)(54356999)(50986999); DIR:OUT; SFP:1101; SCL:1; SRVR:BN6PR02MB2819; H:milsmgep15.sandisk.com; FPR:; SPF:Pass; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD046; 1:BkbxiHV7MojYz6tJgIQ31ph/EWeAVZrf5xpi6T/fUME3oQnvzkzsLuT4QlIbtijmwVIUPtaa2/0peOeiMA+W/IYE9Z0X01pDn9Q6Gt2fq8h4mN6iHg0808rBMPAIntZ9Mjrkg+RvC2PQ3tjcy1p20sHNXMbX8Y1t46eGm1EhUgIgW+tm8BEPqDCcgLAJzQm7pPdrg/uLD0VRUizjhSiO/DMvHilq+vtIOSetv/jZresd8D31D9Ay0GUpYNgw2PJ4WYVvdfvIKFfyGfQrxAMtw0f/zfQDjFw3bpaenp2e/grm/mCG14U6hYWhLWsSV9WL6jHUDzPlHsZ0LLeQnlheLq2g1/iZw3STsekWGue11pvNDIV8p3JlgVqHUu6WK7lfWuG+oESe0le19DigH2qA3cAMMZtclxheXFAOM36iW3aGyx+aETV/JDck8eKD6q5OK1WZln+gvTsVr8BJADt9Jsv/JlZyLjQ8bgJxtAFiCfrTDb7nxc42aNunECxuuWwZ X-Microsoft-Exchange-Diagnostics: 1; BN6PR02MB2819; 2:eZCMB8oAQ/ZxR8z7stq9XJ9CJ1agm0PHgesXhv2loi3AwaymjUDEd7fqQj3zejCBI90WeeQIC9A9lNbyj9b/xMVqK1oVHoeHVtW0WDPipng4xczVtmTSSoptbGcZyczVGSoYH3fUSkv6blC7OTSINVFYseDdyFHai0eAOwMUUAc=; 3:eCGeNhfDnk46u+4MlcfpPBsdWJ/YQCKaq8QMoQvaPCldjTeP3DfrFWBkjttXaykVRIOaMqKoxqj2zm0WAy2F4ZEfq8UneQlzi4GSF0oJtW/nKelwHoso2sBZDiWSQfgARyhOTjalE/EquS3Y/NCyag/qIrk/FKTvY5BdEDkQF7B67QgKaASgc8tB6g/a73A1iajifuAmibK4BWuurJRFAH9YfTkYRlcqkDETwqcxU1woh1W0JgMscpOPOmq6gMO6VwUdvwGg5Z7C0M2bhf2qVIZr/Vus6FcfsONNThYl+Ho= X-MS-Office365-Filtering-Correlation-Id: cf114bfd-5797-4451-5a0d-08d40dafc71a X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(8251501002); SRVR:BN6PR02MB2819; X-Microsoft-Exchange-Diagnostics: 1; BN6PR02MB2819; 25:e8lxoPA6gTijYRKYvH9p/X4mRU58X7e/Iwcm42q7yH4EKzAeas4axO5g21THTWQxJ3sBdCUvX4k+FsRYhnru/LzW+utkKdf8Mrv5zwiyHTf+4xU0Evju3iCKQMKfnmikJvgLqCmquMWm8Ju7QHxR6UjDOe8AoPR/EDfOj9BQZf7v/hqUzIZG0ss/n+/AFnpdFl68msFDq85shSI/1r+p9zLoRpvGNi7TOyTvY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sF+22JZuDMX8K 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)(8121501046)(13018025)(13016025)(5005006)(10201501046)(3002001)(6055026)(6061324); SRVR:BN6PR02MB2819; BCL:0; PCL:0; RULEID:; SRVR:BN6PR02MB2819; X-Microsoft-Exchange-Diagnostics: 1; BN6PR02MB2819; 4:0Wsu4QUsAHV75jOxH/hDySEvIwn8XiwM8PINNY6kT9QVpN/q/eVKT6ls0ujWSLps6oPbjSjw6y5HK3omzdRmhpw/CzoTxckJfAHcwHJUqQ9Lf+RLSuavPAQo1qmS+40RvLDWVK4I7tMhhSLOJzfqcVwBnxpHUi4QM19hV0BpBFp1joLqDvMMQyRRfX/9Wd0zpwEVPSIOo6JZQMJ285p225zWbNgqgPhtCHpXZaL4hCFxf4ZqE1JktcTlqqeNWuzJSlbW3L3wMXkpFCdjRmWQce2Z+216TmpYWT0Ul6cGsI/MSAAMHScdySZXGqOAY5dNZ+loHUAWm7FG8IXdTEOpUdeBkmRFDGGXBRFoPV+KBFOy503rEX/6AYHzU3CKoa69avuDrUSbcmvIpOM3p1AWMpSQl0lm/ewpfCnVNUgryR26Ll/XCeE4a8QMWLsGdeJlJ/x4//sm7lgIk0THXceaWOKz+2AMP9uHzbQDvcqv9L1scfxTG1bWTy97vLHQU4XQx4pS/n2C6we2BiEfXeqIBQ== X-Forefront-PRVS: 012792EC17 X-Microsoft-Exchange-Diagnostics: =?utf-8?B?MTtCTjZQUjAyTUIyODE5OzIzOmFuWUpnSDc1TkI5ejIzMFdxQjdqalpJUGlw?= =?utf-8?B?djRlZFlwNk5rYnl4bnovZXp2cE1adHgvM2ZZeHVKNFl2NHAvOWN1MVNvd3A5?= =?utf-8?B?NlJ2R1pTQ21xNEF5SHhHTlVVbFdqTnovMFlzTFdUbzhnVm9KbEhVTUVFaGx0?= =?utf-8?B?dHgzL29lcUVX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aKG9/6UbwrFd4qw9g0HBiI/7kZSIaoBQ==; 24:tM3r4clFE3NX20bkGApPJf0S4gSJea1gvV1ueBKwyh5DkTgwiUpvj02pVi3itjjL6RG7a6lKXBLY3cZhSkKqBdDCUfXFOTg5oIzCf0F4TfM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN6PR02MB2819; 7:Bh3hmoLSy44u1z7Zmb9kMAOXKLOMdrDYQJDQ2GbLYdZcTwzOLn6beIxbEdfUDGwr3Ecm7t0h5BJ/14IN02LDr9oFwfPo4QQo/dOJSScr+DMovRDXihYxBwQVCZjVuZBCh2SS18tdYlYU3ZARXQd+CFg5C/Euy09n6iaBdlnpIkqTA8bJ1sJOVxFdLv8e6IGCDFHbzWFm8c9c9J2yCGKP+UooaFaBz23gy3ONosGN/SAYSrdJta+g0ZG6TsUzLKukWdTNI0ymD02FqsHTCivIw+uE5QqnyPtoXawLQ+gnDn6CqtLLD09+gnMCXCtOf8nCN5UztuImIG0uDNlFUAAz+urLMZDizkdqCUnUqTCjw9k=; 20:3JFYnhUw+BZvwceGdl3eNVL+tVVwWYKCDTXtKOud8fr8GXKcf1AHV6RG8HSDwCICqptyZpad5NRvp240J7hGGZ5E9473rlbtUiQQDtoFXLkciOAe0gheFHCp2XRo5VmniZOUUKnBSMmUqGHOTMt8TmYJr9iPouu7sqBoJ9LsIcDyiJ2JzRfV7Wu77dvHLM5AsSyeZFSDkoftveotG7Y7FJgLTQlTEcRs5toAgTovjnuzyXHv69k56T2+LpFXvQZR X-OriginatorOrg: sandisk.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Nov 2016 23:33:17.3325 (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.21]; Helo=[milsmgep15.sandisk.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN6PR02MB2819 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.27]); Tue, 15 Nov 2016 23:33:20 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Tue, 15 Nov 2016 23:33:20 +0000 (UTC) for IP:'104.47.34.48' DOMAIN:'mail-by2nam01on0048.outbound.protection.outlook.com' HELO:'NAM01-BY2-obe.outbound.protection.outlook.com' FROM:'Bart.VanAssche@sandisk.com' RCPT:'' X-RedHat-Spam-Score: -0.322 (BAYES_50, DCC_REPUT_13_19, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H5, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS) 104.47.34.48 mail-by2nam01on0048.outbound.protection.outlook.com 104.47.34.48 mail-by2nam01on0048.outbound.protection.outlook.com X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Scanned-By: MIMEDefang 2.78 on 10.5.110.27 X-loop: dm-devel@redhat.com Cc: device-mapper development Subject: [dm-devel] [PATCH 2/7] dm: Simplify dm_table_determine_type() 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 Use a single loop instead of two loops to determine whether or not all_blk_mq has to be set. Signed-off-by: Bart Van Assche --- drivers/md/dm-table.c | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-) diff --git a/drivers/md/dm-table.c b/drivers/md/dm-table.c index 49893fdc..fff4979 100644 --- a/drivers/md/dm-table.c +++ b/drivers/md/dm-table.c @@ -871,7 +871,7 @@ static int dm_table_determine_type(struct dm_table *t) { unsigned i; unsigned bio_based = 0, request_based = 0, hybrid = 0; - bool verify_blk_mq = false; + unsigned sq_count = 0, mq_count = 0; struct dm_target *tgt; struct dm_dev_internal *dd; struct list_head *devices = dm_table_get_devices(t); @@ -959,20 +959,15 @@ static int dm_table_determine_type(struct dm_table *t) } if (q->mq_ops) - verify_blk_mq = true; + mq_count++; + else + sq_count++; } - - if (verify_blk_mq) { - /* verify _all_ devices in the table are blk-mq devices */ - list_for_each_entry(dd, devices, list) - if (!bdev_get_queue(dd->dm_dev->bdev)->mq_ops) { - DMERR("table load rejected: not all devices" - " are blk-mq request-stackable"); - return -EINVAL; - } - - t->all_blk_mq = true; + if (sq_count && mq_count) { + DMERR("table load rejected: not all devices are blk-mq request-stackable"); + return -EINVAL; } + t->all_blk_mq = mq_count > 0; return 0; } @@ -1021,6 +1016,10 @@ bool dm_table_request_based(struct dm_table *t) return __table_type_request_based(dm_table_get_type(t)); } +/* + * Returns true if all paths are blk-mq devices. Returns false if all paths + * are single queue block devices or if there are no paths. + */ bool dm_table_all_blk_mq_devices(struct dm_table *t) { return t->all_blk_mq;